mirror of
https://github.com/opencv/opencv.git
synced 2024-12-05 09:49:12 +08:00
32 lines
632 B
CMake
32 lines
632 B
CMake
set(the_description "The ts module")
|
|
|
|
if(IOS)
|
|
ocv_module_disable(ts)
|
|
endif()
|
|
|
|
if(MINGW)
|
|
set(OPENCV_MODULE_TYPE STATIC)
|
|
endif()
|
|
|
|
set(OPENCV_MODULE_IS_PART_OF_WORLD FALSE)
|
|
|
|
if(HAVE_CUDA)
|
|
ocv_include_directories(${CUDA_INCLUDE_DIRS})
|
|
endif()
|
|
|
|
ocv_warnings_disable(CMAKE_CXX_FLAGS -Wundef)
|
|
|
|
ocv_add_module(ts opencv_core opencv_imgproc opencv_highgui)
|
|
|
|
ocv_glob_module_sources()
|
|
ocv_module_include_directories()
|
|
ocv_create_module()
|
|
|
|
if(BUILD_SHARED_LIBS AND NOT MINGW)
|
|
add_definitions(-DGTEST_CREATE_SHARED_LIBRARY=1)
|
|
else()
|
|
add_definitions(-DGTEST_CREATE_SHARED_LIBRARY=0)
|
|
endif()
|
|
|
|
ocv_add_precompiled_headers(${the_module})
|