2012-02-03 19:26:49 +08:00
|
|
|
if(IOS)
|
|
|
|
ocv_module_disable(ts)
|
|
|
|
endif()
|
2012-01-25 17:04:49 +08:00
|
|
|
|
2012-02-03 19:26:49 +08:00
|
|
|
if(MINGW)
|
2012-04-14 05:50:59 +08:00
|
|
|
set(OPENCV_MODULE_TYPE STATIC)
|
2012-02-03 19:26:49 +08:00
|
|
|
endif()
|
|
|
|
|
|
|
|
set(the_description "The ts module")
|
|
|
|
ocv_add_module(ts opencv_core)
|
|
|
|
ocv_glob_module_sources()
|
|
|
|
ocv_module_include_directories()
|
|
|
|
ocv_create_module()
|
2012-01-25 00:55:47 +08:00
|
|
|
|
2012-02-03 19:26:49 +08:00
|
|
|
if(BUILD_SHARED_LIBS AND NOT MINGW)
|
2012-04-14 05:50:59 +08:00
|
|
|
add_definitions(-DGTEST_CREATE_SHARED_LIBRARY=1)
|
|
|
|
if (MSVC AND NOT ENABLE_NOISY_WARNINGS)
|
|
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /wd4275")
|
|
|
|
endif()
|
2012-02-03 19:26:49 +08:00
|
|
|
else()
|
2012-04-14 05:50:59 +08:00
|
|
|
add_definitions(-DGTEST_CREATE_SHARED_LIBRARY=0)
|
2012-01-25 00:55:47 +08:00
|
|
|
endif()
|
2012-02-03 19:26:49 +08:00
|
|
|
|
|
|
|
ocv_add_precompiled_headers(${the_module})
|