Open duocang opened 5 years ago
I have the problem to update the CMakeLists.txt:
CMakeLists.txt
cmake_minimum_required(VERSION 3.7) project(tf_detector_example) set(CMAKE_CXX_STANDARD 11) set(SOURCE_FILES main.cpp utils.cpp utils.h) add_executable(tf_detector_example ${SOURCE_FILES}) # OpenCV libs set(OpenCV_DIR "C:/opencv/build/x64/vc15/lib") message("OpenCV_FOUND='${OpenCV_FOUND}'") find_package(OpenCV REQUIRED) include_directories( ${OpenCV_INCLUDE_DIRS} ) message("These are my opencv libs: /n'${OpenCV_LIBS}'" ) target_link_libraries(tf_detector_example ${OpenCV_LIBS}) # ==================== PATHS TO SPECIFY! ==================== # # Eigen lib headers include_directories("C:/eigen_337") # TensorFlow headers include_directories("C:/Users/tf_compile/tf_vs2015_cmake") include_directories("C:/Users/tf_compile/tf_vs2015_cmake/tensorflow") include_directories("C:/Users/tf_compile/tf_vs2015_cmake/tensorflow/contrib/cmake/build/Release") include_directories("C:/Users/tf_compile/tf_vs2015_cmake/third_party") # Link TensorFlow libs target_link_libraries(tf_detector_example "C:/Users/tf_compile/tf_vs2015_cmake/tensorflow/contrib/cmake/build/Release/tensorflow.dll")
Don't see a problem here actually, but the answer to your question: no, I used Linux only
I have the problem to update the
CMakeLists.txt
: