Meta Byte Track
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

CMakeLists.txt 1.2KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. cmake_minimum_required(VERSION 2.6)
  2. project(bytetrack)
  3. add_definitions(-std=c++11)
  4. option(CUDA_USE_STATIC_CUDA_RUNTIME OFF)
  5. set(CMAKE_CXX_STANDARD 11)
  6. set(CMAKE_BUILD_TYPE Debug)
  7. find_package(CUDA REQUIRED)
  8. include_directories(${PROJECT_SOURCE_DIR}/include)
  9. include_directories(/usr/local/include/eigen3)
  10. link_directories(${PROJECT_SOURCE_DIR}/include)
  11. # include and link dirs of cuda and tensorrt, you need adapt them if yours are different
  12. # cuda
  13. include_directories(/usr/local/cuda/include)
  14. link_directories(/usr/local/cuda/lib64)
  15. # cudnn
  16. include_directories(/data/cuda/cuda-10.2/cudnn/v8.0.4/include)
  17. link_directories(/data/cuda/cuda-10.2/cudnn/v8.0.4/lib64)
  18. # tensorrt
  19. include_directories(/opt/tiger/demo/TensorRT-7.2.3.4/include)
  20. link_directories(/opt/tiger/demo/TensorRT-7.2.3.4/lib)
  21. set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wall -Ofast -Wfatal-errors -D_MWAITXINTRIN_H_INCLUDED")
  22. find_package(OpenCV)
  23. include_directories(${OpenCV_INCLUDE_DIRS})
  24. file(GLOB My_Source_Files ${PROJECT_SOURCE_DIR}/src/*.cpp)
  25. add_executable(bytetrack ${My_Source_Files})
  26. target_link_libraries(bytetrack nvinfer)
  27. target_link_libraries(bytetrack cudart)
  28. target_link_libraries(bytetrack ${OpenCV_LIBS})
  29. add_definitions(-O2 -pthread)