From fdc4344acb30476be88e0bd98e2daa55aaf73e71 Mon Sep 17 00:00:00 2001 From: mevatron Date: Fri, 6 Oct 2017 16:03:39 -0500 Subject: [PATCH] Small fix for using Qt 5.x with opencv_world --- modules/highgui/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/highgui/CMakeLists.txt b/modules/highgui/CMakeLists.txt index 4fba298589..c117043de3 100644 --- a/modules/highgui/CMakeLists.txt +++ b/modules/highgui/CMakeLists.txt @@ -42,9 +42,11 @@ if(HAVE_QT5) set(CMAKE_INCLUDE_CURRENT_DIR ON) QT5_ADD_RESOURCES(_RCC_OUTFILES ${CMAKE_CURRENT_LIST_DIR}/src/window_QT.qrc) + QT5_WRAP_CPP(_MOC_OUTFILES ${CMAKE_CURRENT_LIST_DIR}/src/window_QT.h) list(APPEND highgui_srcs ${CMAKE_CURRENT_LIST_DIR}/src/window_QT.cpp ${CMAKE_CURRENT_LIST_DIR}/src/window_QT.h + ${_MOC_OUTFILES} ${_RCC_OUTFILES}) foreach(dt5_dep Core Gui Widgets Test Concurrent)