Enable QML debugging if build type is debug
This commit is contained in:
parent
aa300b237f
commit
1946816ce0
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue