2013-12-23 18:42:00 +08:00
|
|
|
if(NOT ENABLE_DYNAMIC_CUDA)
|
2013-12-19 20:42:11 +08:00
|
|
|
ocv_module_disable(dynamicuda)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
set(the_description "Dynamic CUDA linkage")
|
|
|
|
|
|
|
|
add_definitions(-DUSE_CUDA)
|
2013-12-24 16:23:50 +08:00
|
|
|
ocv_warnings_disable(CMAKE_CXX_FLAGS -Wundef -Wshadow)
|
2013-12-19 20:42:11 +08:00
|
|
|
ocv_module_include_directories("${OpenCV_SOURCE_DIR}/modules/gpu/include")
|
|
|
|
set(OPENCV_MODULE_TYPE SHARED)
|
|
|
|
if (BUILD_FAT_JAVA_LIB)
|
2013-12-27 21:19:38 +08:00
|
|
|
ocv_define_module(dynamicuda INTERNAL opencv_java PRIVATE_REQUIRED ${CUDA_LIBRARIES} ${CUDA_npp_LIBRARY})
|
2013-12-19 20:42:11 +08:00
|
|
|
else()
|
2013-12-27 21:19:38 +08:00
|
|
|
ocv_define_module(dynamicuda INTERNAL opencv_core PRIVATE_REQUIRED ${CUDA_LIBRARIES} ${CUDA_npp_LIBRARY})
|
2013-12-19 20:42:11 +08:00
|
|
|
endif()
|