if(NOT HAVE_QT OR NOT HAVE_CXX11 OR QT_VERSION_MAJOR LESS 5) ocv_module_disable(cvv) return() endif() set(the_description "Debug visualization framework") ocv_add_module(cvv opencv_core opencv_imgproc opencv_features2d WRAP python) ocv_warnings_disable(CMAKE_CXX_FLAGS -Wshadow -Wmissing-declarations) # Qt5 set(CMAKE_AUTOMOC ON) set(CMAKE_INCLUDE_CURRENT_DIR ON) foreach(dt5_dep Core Gui Widgets) add_definitions(${Qt5${dt5_dep}_DEFINITIONS}) include_directories(${Qt5${dt5_dep}_INCLUDE_DIRS}) list(APPEND CVV_LIBRARIES ${Qt5${dt5_dep}_LIBRARIES}) endforeach() ocv_glob_module_sources() ocv_module_include_directories() ocv_create_module(${CVV_LIBRARIES}) ocv_add_accuracy_tests() ocv_add_perf_tests() ocv_add_samples()