CMakeLists.txt 524 B

12345678910111213
  1. cmake_minimum_required(VERSION 3.1 FATAL_ERROR)
  2. project(test_frcnn_tracing)
  3. find_package(Torch REQUIRED)
  4. find_package(TorchVision REQUIRED)
  5. # This due to some headers importing Python.h
  6. find_package(Python3 COMPONENTS Development)
  7. add_executable(test_frcnn_tracing test_frcnn_tracing.cpp)
  8. target_compile_features(test_frcnn_tracing PUBLIC cxx_range_for)
  9. target_link_libraries(test_frcnn_tracing ${TORCH_LIBRARIES} TorchVision::TorchVision Python3::Python)
  10. set_property(TARGET test_frcnn_tracing PROPERTY CXX_STANDARD 17)