From fc8c65ff157ce754e208c9bcb9873b0f910f198a Mon Sep 17 00:00:00 2001 From: "marina.kolpakova" Date: Tue, 7 Aug 2012 17:27:02 +0400 Subject: [PATCH] HAVE_CUDA macro --- modules/gpu/test/test_labeling.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/gpu/test/test_labeling.cpp b/modules/gpu/test/test_labeling.cpp index 69c076827..bba26ad14 100644 --- a/modules/gpu/test/test_labeling.cpp +++ b/modules/gpu/test/test_labeling.cpp @@ -43,6 +43,8 @@ #include #include +#ifdef HAVE_CUDA + namespace { struct GreedyLabeling @@ -198,4 +200,6 @@ TEST_P(Labeling, ConnectedComponents) // cv::waitKey(0); } -INSTANTIATE_TEST_CASE_P(ConnectedComponents, Labeling, ALL_DEVICES); \ No newline at end of file +INSTANTIATE_TEST_CASE_P(ConnectedComponents, Labeling, ALL_DEVICES); + +#endif \ No newline at end of file