mirror of
https://github.com/opencv/opencv.git
synced 2024-11-27 12:40:05 +08:00
10 lines
250 B
CMake
10 lines
250 B
CMake
if(BUILD_SHARED_LIBS)
|
|
add_definitions(-DGTEST_CREATE_SHARED_LIBRARY=1)
|
|
if (MSVC)
|
|
add_definitions( "/wd4251 /wd4275")
|
|
endif()
|
|
else()
|
|
add_definitions(-DGTEST_CREATE_SHARED_LIBRARY=0)
|
|
endif()
|
|
define_opencv_module(ts opencv_core)
|