refactor CV_CUDA_TEST_MAIN, use CV_TEST_MAIN for it

use CV_CUDA_TEST_MAIN for opencv_test_core to initialize CUDA
device information
This commit is contained in:
Vladislav Vinogradov
2014-12-23 17:43:14 +03:00
parent 8237418be6
commit b33f3bb2cc
4 changed files with 40 additions and 48 deletions

View File

@@ -7,4 +7,14 @@
#include "test_precomp.hpp"
#ifndef HAVE_CUDA
CV_TEST_MAIN("cv")
#else
#include "opencv2/ts/cuda_test.hpp"
CV_CUDA_TEST_MAIN("cv")
#endif