if (NOT WIN32) find_package(Threads) endif() include(zlib) include(protobuf) include(googletest) include(glog) include(gflags) include(grpc) include(tensorflow) find_package(CUDA REQUIRED) set(oneflow_third_party_libs ${CMAKE_THREAD_LIBS_INIT} ${ZLIB_STATIC_LIBRARIES} ${GLOG_STATIC_LIBRARIES} ${GFLAGS_STATIC_LIBRARIES} ${GOOGLETEST_STATIC_LIBRARIES} ${PROTOBUF_STATIC_LIBRARIES} ${GRPC_STATIC_LIBRARIES} ) if(WIN32) # static gflags lib requires "PathMatchSpecA" defined in "ShLwApi.Lib" list(APPEND oneflow_third_party_libs "ShLwApi.Lib") endif() set(oneflow_third_party_dependencies zlib_copy_headers_to_destination zlib_copy_libs_to_destination gflags_copy_headers_to_destination gflags_copy_libs_to_destination glog_copy_headers_to_destination glog_copy_libs_to_destination googletest_copy_headers_to_destination googletest_copy_libs_to_destination protobuf_copy_headers_to_destination protobuf_copy_libs_to_destination protobuf_copy_binary_to_destination grpc_copy_headers_to_destination grpc_copy_libs_to_destination tensorflow ) include_directories( ${ZLIB_INCLUDE_DIR} ${GFLAGS_INCLUDE_DIR} ${GLOG_INCLUDE_DIR} ${GOOGLETEST_INCLUDE_DIR} ${PROTOBUF_INCLUDE_DIR} ${GRPC_INCLUDE_DIR} )