:
- CMakeLists.txt TF. ls -la :
tensorflow
third-party
tools
CMakeLists.txt
some
other
files
- CMakeLists.txt :
!!! , 800+. , . :
https://github.com/oleg-ostanin/tf_related_staff/blob/master/CMakeLists.txt
, , , .
cmake_minimum_required(VERSION 3.14)
project(tensorflow)
set(CMAKE_CXX_STANDARD 14)
include_directories(/home/oostanin/tf_related_repos/abseil-cpp)
include_directories(/home/oostanin/tf_related_repos/protobuf/src/)
include_directories(/home/oostanin/tensorflow)
include_directories(/home/oostanin/tensorflow/bazel-genfiles)
file(GLOB tensorflow_contrib_tensorrt_shape_fn "${CMAKE_SOURCE_DIR}/tensorflow/contrib/tensorrt/shape_fn/*.cc")
file(GLOB tensorflow_compiler_xla_service_llvm_ir "${CMAKE_SOURCE_DIR}/tensorflow/compiler/xla/service/llvm_ir/*.cc")
file(GLOB tensorflow_lite_delegates_gpu_gl "${CMAKE_SOURCE_DIR}/tensorflow/lite/delegates/gpu/gl/*.cc")
add_library(
tensorflow
SHARED
${tensorflow_contrib_tensorrt_shape_fn}
${tensorflow_compiler_xla_service_llvm_ir}
${tensorflow_lite_delegates_gpu_gl}
)
target_link_libraries(
tensorflow
)
:
TF , - Cmake, . :
include_directories(/home/oostanin/tf_related_repos/abseil-cpp)
include_directories(/home/oostanin/tf_related_repos/protobuf/src/)
, 2 , .
TF protobuf, TF , Bazel. , , , . Cmake, protobuf. :
include_directories(/home/oostanin/tensorflow/bazel-genfiles)
TF Bazel, , , , .
Cmake, TF, 300+ , .cc, :
file(GLOB tensorflow_contrib_tensorrt_shape_fn "${CMAKE_SOURCE_DIR}/tensorflow/contrib/tensorrt/shape_fn/*.cc")
file(GLOB tensorflow_compiler_xla_service_llvm_ir "${CMAKE_SOURCE_DIR}/tensorflow/compiler/xla/service/llvm_ir/*.cc")
file(GLOB tensorflow_lite_delegates_gpu_gl "${CMAKE_SOURCE_DIR}/tensorflow/lite/delegates/gpu/gl/*.cc")
300+ , :
add_library(
tensorflow
SHARED
${tensorflow_contrib_tensorrt_shape_fn}
${tensorflow_compiler_xla_service_llvm_ir}
${tensorflow_lite_delegates_gpu_gl}
)
, TF, CMakeLists.txt, . TF CLion, , , VIM.