Make depending on QQC2 for Quick GUI a one-liner

This commit is contained in:
Martchus 2018-06-16 13:11:18 +02:00
parent b7f2ce0f10
commit c48c669095
1 changed files with 5 additions and 0 deletions

View File

@ -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()