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