Make dependency from CUDA explicit to prevent from fake dependedcies from CUDA runtime.

This commit is contained in:
Alexander Smorkalov
2013-12-19 10:27:38 +04:00
parent 442082eb0f
commit 6da7c50fb5
5 changed files with 8 additions and 18 deletions

View File

@@ -3,7 +3,8 @@ if(IOS)
endif()
set(the_description "GPU-accelerated Computer Vision")
ocv_add_module(gpu opencv_imgproc opencv_calib3d opencv_objdetect opencv_video opencv_photo opencv_legacy)
ocv_add_module(gpu opencv_imgproc opencv_calib3d opencv_objdetect opencv_video opencv_photo opencv_legacy
OPTIONAL ${CUDA_LIBRARIES} ${CUDA_npp_LIBRARY} ${CUDA_cublas_LIBRARY} ${CUDA_cufft_LIBRARY})
ocv_module_include_directories("${CMAKE_CURRENT_SOURCE_DIR}/src/cuda")