From c48c669095532599021b7de1aa0b51ce5a73a857 Mon Sep 17 00:00:00 2001 From: Martchus Date: Sat, 16 Jun 2018 13:11:18 +0200 Subject: [PATCH] Make depending on QQC2 for Quick GUI a one-liner --- cmake/modules/QtGuiConfig.cmake | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cmake/modules/QtGuiConfig.cmake b/cmake/modules/QtGuiConfig.cmake index 112b88d..cf41fc2 100644 --- a/cmake/modules/QtGuiConfig.cmake +++ b/cmake/modules/QtGuiConfig.cmake @@ -41,6 +41,11 @@ if(QUICK_GUI) if(CMAKE_BUILD_TYPE STREQUAL "Debug") list(APPEND META_PRIVATE_COMPILE_DEFINITIONS QT_QML_DEBUG) endif() + + # enable Qt Quick Controls 2 + if(META_USE_QQC2) + list(APPEND ADDITIONAL_QT_MODULES QuickControls2) + endif() else() message(STATUS "Qt Quick GUI is not available.") endif()