diff options
author | Christian Stenger <christian.stenger@qt.io> | 2018-07-05 12:36:53 +0200 |
---|---|---|
committer | Tobias Hunger <tobias.hunger@qt.io> | 2018-07-09 15:27:11 +0000 |
commit | 3300182d405bffe062a0f2be900f35822a9e20b0 (patch) | |
tree | 39d880f208fbe544180fbedf456d1ba7c3da26ae | |
parent | 8eef50e576daf95e21a8fe0dd5f5bf68e3b354b3 (diff) |
Wizards: Make it easier to debug cmake based quick applications
Change-Id: I09a09fb14b3cf8d5486e84413f9f3238c72e2d0f
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
-rw-r--r-- | share/qtcreator/templates/wizards/projects/qtquickapplication/CMakeLists.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/share/qtcreator/templates/wizards/projects/qtquickapplication/CMakeLists.txt b/share/qtcreator/templates/wizards/projects/qtquickapplication/CMakeLists.txt index 07c1f58608..f28d772a1a 100644 --- a/share/qtcreator/templates/wizards/projects/qtquickapplication/CMakeLists.txt +++ b/share/qtcreator/templates/wizards/projects/qtquickapplication/CMakeLists.txt @@ -11,5 +11,5 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON) find_package(Qt5 COMPONENTS Core Quick REQUIRED) add_executable(${PROJECT_NAME} "%{MainCppFileName}" "qml.qrc") - -target_link_libraries(${PROJECT_NAME} Qt5::Core Qt5::Quick) +target_compile_definitions(${PROJECT_NAME} PRIVATE $<$<OR:$<CONFIG:Debug>,$<CONFIG:RelWithDebInfo>>:QT_QML_DEBUG>) +target_link_libraries(${PROJECT_NAME} PRIVATE Qt5::Core Qt5::Quick) |