disable CTest target for opencv_test_viz:

opencv_test_viz creates windows and waits until user close them,
it is not appropriate for automatic testing
This commit is contained in:
Vladislav Vinogradov 2014-10-21 18:49:53 +04:00
parent 0c57dc2e00
commit f44c29ad7d

View File

@ -814,7 +814,7 @@ function(ocv_add_accuracy_tests)
ocv_add_precompiled_headers(${the_target})
if(CMAKE_VERSION VERSION_GREATER "2.8" AND OPENCV_TEST_DATA_PATH)
if(CMAKE_VERSION VERSION_GREATER "2.8" AND OPENCV_TEST_DATA_PATH AND NOT "${the_target}" MATCHES "opencv_test_viz")
add_test(NAME ${the_target} COMMAND ${the_target})
set_tests_properties(${the_target} PROPERTIES