disabled utility code in gpu tests when WITH_CUDA=false
authorVladislav Vinogradov <vlad.vinogradov@itseez.com>
Thu, 13 Sep 2012 08:17:35 +0000 (12:17 +0400)
committerVladislav Vinogradov <vlad.vinogradov@itseez.com>
Thu, 13 Sep 2012 08:17:35 +0000 (12:17 +0400)
modules/gpu/test/main_test_nvidia.h
modules/gpu/test/test_nvidia.cpp
modules/gpu/test/test_precomp.hpp
modules/gpu/test/utility.cpp
modules/gpu/test/utility.hpp

index 15016ca..173cbdb 100644 (file)
@@ -1,8 +1,6 @@
 #ifndef __main_test_nvidia_h__
 #define __main_test_nvidia_h__
 
-#include <string>
-
 enum OutputLevel
 {
     OutputLevelNone,
index 3de3557..9c49b09 100644 (file)
 \r
 #include "test_precomp.hpp"\r
 \r
-OutputLevel nvidiaTestOutputLevel = OutputLevelCompact;\r
-\r
 #ifdef HAVE_CUDA\r
 \r
 using namespace cvtest;\r
 using namespace testing;\r
 \r
+OutputLevel nvidiaTestOutputLevel = OutputLevelCompact;\r
+\r
 struct NVidiaTest : TestWithParam<cv::gpu::DeviceInfo>\r
 {\r
     cv::gpu::DeviceInfo devInfo;\r
index 782b06a..21967b9 100644 (file)
 \r
 #include "cvconfig.h"\r
 \r
-#include "opencv2/core/core.hpp"\r
-#include "opencv2/highgui/highgui.hpp"\r
-#include "opencv2/calib3d/calib3d.hpp"\r
-#include "opencv2/imgproc/imgproc.hpp"\r
-#include "opencv2/video/video.hpp"\r
-#include "opencv2/ts/ts.hpp"\r
-#include "opencv2/ts/ts_perf.hpp"\r
-#include "opencv2/gpu/gpu.hpp"\r
-#include "opencv2/nonfree/nonfree.hpp"\r
-#include "opencv2/legacy/legacy.hpp"\r
-\r
-#include "utility.hpp"\r
-#include "interpolation.hpp"\r
-#include "main_test_nvidia.h"\r
-\r
 #ifdef HAVE_CUDA\r
     #include <cuda.h>\r
     #include <cuda_runtime.h>\r
+\r
+    #include "opencv2/core/core.hpp"\r
+    #include "opencv2/highgui/highgui.hpp"\r
+    #include "opencv2/calib3d/calib3d.hpp"\r
+    #include "opencv2/imgproc/imgproc.hpp"\r
+    #include "opencv2/video/video.hpp"\r
+    #include "opencv2/ts/ts.hpp"\r
+    #include "opencv2/ts/ts_perf.hpp"\r
+    #include "opencv2/gpu/gpu.hpp"\r
+    #include "opencv2/nonfree/nonfree.hpp"\r
+    #include "opencv2/legacy/legacy.hpp"\r
+\r
+    #include "utility.hpp"\r
+    #include "interpolation.hpp"\r
+    #include "main_test_nvidia.h"\r
 #endif\r
 \r
 #endif\r
index a92d2c5..df09bce 100644 (file)
@@ -41,6 +41,8 @@
 \r
 #include "test_precomp.hpp"\r
 \r
+#ifdef HAVE_CUDA\r
+\r
 using namespace std;\r
 using namespace cv;\r
 using namespace cv::gpu;\r
@@ -418,3 +420,5 @@ void showDiff(InputArray gold_, InputArray actual_, double eps)
 \r
     waitKey();\r
 }\r
+\r
+#endif // HAVE_CUDA\r
index 1d153fc..54034e1 100644 (file)
 #ifndef __OPENCV_TEST_UTILITY_HPP__\r
 #define __OPENCV_TEST_UTILITY_HPP__\r
 \r
-#include <vector>\r
-#include <string>\r
-#include "opencv2/core/core.hpp"\r
-#include "opencv2/highgui/highgui.hpp"\r
-#include "opencv2/gpu/gpu.hpp"\r
-#include "opencv2/ts/ts.hpp"\r
-#include "opencv2/ts/ts_perf.hpp"\r
-\r
 //////////////////////////////////////////////////////////////////////\r
 // random generators\r
 \r