CMakeLists.txt 735 B

12345678910111213141516171819202122232425
  1. if(NOT HAVE_QT OR NOT HAVE_CXX11 OR QT_VERSION_MAJOR LESS 5)
  2. ocv_module_disable(cvv)
  3. return()
  4. endif()
  5. set(the_description "Debug visualization framework")
  6. ocv_add_module(cvv opencv_core opencv_imgproc opencv_features2d WRAP python)
  7. ocv_warnings_disable(CMAKE_CXX_FLAGS -Wshadow -Wmissing-declarations)
  8. # Qt5
  9. set(CMAKE_AUTOMOC ON)
  10. set(CMAKE_INCLUDE_CURRENT_DIR ON)
  11. foreach(dt5_dep Core Gui Widgets)
  12. add_definitions(${Qt5${dt5_dep}_DEFINITIONS})
  13. include_directories(${Qt5${dt5_dep}_INCLUDE_DIRS})
  14. list(APPEND CVV_LIBRARIES ${Qt5${dt5_dep}_LIBRARIES})
  15. endforeach()
  16. ocv_glob_module_sources()
  17. ocv_module_include_directories()
  18. ocv_create_module(${CVV_LIBRARIES})
  19. ocv_add_accuracy_tests()
  20. ocv_add_perf_tests()
  21. ocv_add_samples()