CMakeLists.txt 491 B

123456789101112131415161718192021
  1. cmake_minimum_required( VERSION 2.8 )
  2. project( bs_dsp )
  3. # Eigen library
  4. include_directories( "/usr/include/eigen3/" )
  5. # OpenCV
  6. find_package( OpenCV 3.1 REQUIRED )
  7. # CUDA
  8. find_package( CUDA )
  9. if (CUDA_FOUND)
  10. include( FindCUDA )
  11. cuda_add_executable( bs_dsp bs_dsp.cu )
  12. target_link_libraries( bs_dsp ${OpenCV_LIBS} )
  13. else()
  14. message(STATUS "CUDA not found; will skip bs_dsp")
  15. endif (CUDA_FOUND)
  16. add_executable( lines lines.cpp )
  17. target_link_libraries( lines ${OpenCV_LIBS} )