2013-12-20 16:32:34 +04:00
|
|
|
if(NOT DYNAMIC_CUDA_SUPPORT)
|
2013-12-19 16:42:11 +04:00
|
|
|
ocv_module_disable(dynamicuda)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
set(the_description "Dynamic CUDA linkage")
|
|
|
|
|
|
|
|
add_definitions(-DUSE_CUDA)
|
2013-12-19 17:41:04 +04:00
|
|
|
ocv_warnings_disable(CMAKE_CXX_FLAGS -Wundef)
|
2013-12-19 16:42:11 +04:00
|
|
|
ocv_module_include_directories("${OpenCV_SOURCE_DIR}/modules/gpu/include")
|
|
|
|
set(OPENCV_MODULE_TYPE SHARED)
|
|
|
|
if (BUILD_FAT_JAVA_LIB)
|
|
|
|
ocv_define_module(dynamicuda opencv_java PRIVATE_REQUIRED ${CUDA_LIBRARIES} ${CUDA_npp_LIBRARY})
|
|
|
|
else()
|
2013-12-20 16:32:34 +04:00
|
|
|
ocv_define_module(dynamicuda opencv_core PRIVATE_REQUIRED ${CUDA_LIBRARIES} ${CUDA_npp_LIBRARY})
|
2013-12-19 16:42:11 +04:00
|
|
|
endif()
|