2017-01-05 13:40:59 +01:00
|
|
|
cmake_minimum_required( VERSION 2.8 )
|
|
|
|
project( bs_dsp )
|
|
|
|
|
|
|
|
# Eigen library
|
|
|
|
include_directories( "/usr/include/eigen3/" )
|
|
|
|
|
|
|
|
# OpenCV
|
|
|
|
find_package( OpenCV 3.1 REQUIRED )
|
|
|
|
|
|
|
|
# CUDA
|
|
|
|
find_package( CUDA )
|
|
|
|
if (CUDA_FOUND)
|
|
|
|
include( FindCUDA )
|
|
|
|
cuda_add_executable( bs_dsp bs_dsp.cu )
|
|
|
|
target_link_libraries( bs_dsp ${OpenCV_LIBS} )
|
2017-01-05 14:00:14 +01:00
|
|
|
else()
|
|
|
|
message(STATUS "CUDA not found; will skip bs_dsp")
|
2017-01-05 13:40:59 +01:00
|
|
|
endif (CUDA_FOUND)
|
|
|
|
|
|
|
|
add_executable( lines lines.cpp )
|
|
|
|
target_link_libraries( lines ${OpenCV_LIBS} )
|