Enable QML debugging if build type is debug

This commit is contained in:
Martchus 2018-05-23 23:20:58 +02:00
parent aa300b237f
commit 1946816ce0
1 changed files with 5 additions and 0 deletions

View File

@ -36,6 +36,11 @@ if(QUICK_GUI)
list(APPEND ADDITIONAL_QT_MODULES Quick)
list(APPEND ADDITIONAL_QT_REPOS "declarative")
message(STATUS "Building with Qt Quick GUI.")
# enable QML debugging
if(CMAKE_BUILD_TYPE STREQUAL "Debug")
list(APPEND META_PRIVATE_COMPILE_DEFINITIONS QT_QML_DEBUG)
endif()
else()
message(STATUS "Qt Quick GUI is not available.")
endif()