1 set(the_description "The Core Functionality") 2 ocv_add_module(core PRIVATE_REQUIRED ${ZLIB_LIBRARIES} "${OPENCL_LIBRARIES}" 3 OPTIONAL opencv_cudev 4 WRAP java python) 5 6 set(extra_libs "") 7 8 if(WINRT AND CMAKE_SYSTEM_NAME MATCHES WindowsStore AND CMAKE_SYSTEM_VERSION MATCHES "8.0") 9 list(APPEND extra_libs ole32.lib) 10 endif() 11 12 if(HAVE_CUDA) 13 ocv_warnings_disable(CMAKE_CXX_FLAGS -Wundef -Wenum-compare -Wunused-function -Wshadow) 14 endif() 15 16 file(GLOB lib_cuda_hdrs "include/opencv2/${name}/cuda/*.hpp" "include/opencv2/${name}/cuda/*.h") 17 file(GLOB lib_cuda_hdrs_detail "include/opencv2/${name}/cuda/detail/*.hpp" "include/opencv2/${name}/cuda/detail/*.h") 18 19 source_group("Cuda Headers" FILES ${lib_cuda_hdrs}) 20 source_group("Cuda Headers\\Detail" FILES ${lib_cuda_hdrs_detail}) 21 22 ocv_glob_module_sources(SOURCES "${OPENCV_MODULE_opencv_core_BINARY_DIR}/version_string.inc" 23 HEADERS ${lib_cuda_hdrs} ${lib_cuda_hdrs_detail}) 24 25 ocv_module_include_directories(${the_module} ${ZLIB_INCLUDE_DIRS}) 26 ocv_create_module(${extra_libs}) 27 28 ocv_add_accuracy_tests() 29 ocv_add_perf_tests() 30