From f69bb74202e106ee953485ee0a0621d9b4134c23 Mon Sep 17 00:00:00 2001 From: Andrey Pavlenko Date: Thu, 8 Sep 2011 13:13:37 +0000 Subject: [PATCH] Fixing static libs build on Windows --- modules/ts/include/opencv2/ts/ts.hpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/ts/include/opencv2/ts/ts.hpp b/modules/ts/include/opencv2/ts/ts.hpp index bcaa691f34..c3603d287e 100644 --- a/modules/ts/include/opencv2/ts/ts.hpp +++ b/modules/ts/include/opencv2/ts/ts.hpp @@ -1,9 +1,14 @@ #ifndef __OPENCV_GTESTCV_HPP__ #define __OPENCV_GTESTCV_HPP__ +#if HAVE_CVCONFIG_H +#include "cvconfig.h" +#endif #ifndef GTEST_CREATE_SHARED_LIBRARY +#ifdef BUILD_SHARED_LIBS #define GTEST_LINKED_AS_SHARED_LIBRARY 1 #endif +#endif #ifdef ANDROID # include