cmake_minimum_required(VERSION 3.5)
project(dibr-player-cuda)
find_package( Boost 1.40 COMPONENTS program_options REQUIRED )
find_package (OpenCV REQUIRED)
find_package (CUDA 8.0 REQUIRED)
find_package (SDL REQUIRED)
Pass options to NVCC
set(
CUDA_NVCC_FLAGS
${CUDA_NVCC_FLAGS} -gencode arch=compute_53, code=sm_53)
file( GLOB cu *.cu)
cuda_add_executable( dibr-player-cuda
cuda/yuv.cpp
cuda/main.cpp
cuda/convolution.cu
)
include_directories ( cuda )
target_link_libraries( dibr-player-cuda
${Boost_LIBRARIES}
${CUDA_LIBRARIES}
${OpenCL_LIBRARIES}
${OpenCV_LIBRARIES}
)