Merge pull request #1231 from SpecLad:static-ts

pull/1187/merge
Andrey Pavlenko 11 years ago committed by OpenCV Buildbot
commit e0659a5967
  1. 11
      modules/ts/CMakeLists.txt
  2. 7
      modules/ts/include/opencv2/ts/ts.hpp

@ -4,10 +4,7 @@ if(IOS)
ocv_module_disable(ts)
endif()
if(MINGW)
set(OPENCV_MODULE_TYPE STATIC)
endif()
set(OPENCV_MODULE_TYPE STATIC)
set(OPENCV_MODULE_IS_PART_OF_WORLD FALSE)
if(HAVE_CUDA)
@ -22,10 +19,4 @@ 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})

@ -1,13 +1,6 @@
#ifndef __OPENCV_GTESTCV_HPP__
#define __OPENCV_GTESTCV_HPP__
#include "cvconfig.h"
#ifndef GTEST_CREATE_SHARED_LIBRARY
#ifdef BUILD_SHARED_LIBS
#define GTEST_LINKED_AS_SHARED_LIBRARY 1
#endif
#endif
#include <stdarg.h> // for va_list
#ifdef HAVE_WINRT

Loading…
Cancel
Save