forked from qt-creator/qt-creator
Doc: Describe CMake config for debugging running Qt Quick apps
The target_compile_definitions(myapp PRIVATE QT_QML_DEBUG) command is used. Task-number: QTCREATORBUG-26616 Change-Id: Ifde5f6f11081afa8af19e0339733d7380d1d14be Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -132,8 +132,18 @@
|
||||
\li Build the application by using the appropriate configuration
|
||||
parameters (if you build the application with \QC, it automatically
|
||||
uses the correct configuration):
|
||||
\list
|
||||
\li When using CMake, the
|
||||
\l{CMake: target_compile_definitions command}
|
||||
{target_compile_definitions} command is defined
|
||||
in the CMakeLists.txt file:
|
||||
\c {target_compile_definitions(myapp PRIVATE QT_QML_DEBUG)}
|
||||
|
||||
\c {CONFIG+=qml_debug}
|
||||
Where \e myapp is the application to debug.
|
||||
\li When using qmake, the following value is defined for the
|
||||
\l CONFIG property in the .pro file:
|
||||
\c {CONFIG += qml_debug}
|
||||
\endlist
|
||||
\endif
|
||||
|
||||
\li Start the application with the following arguments:
|
||||
|
@@ -121,6 +121,10 @@
|
||||
\externalpage https://cmake.org/cmake/help/latest/command/set_property.html
|
||||
\title CMake: set_property command
|
||||
*/
|
||||
/*!
|
||||
\externalpage https://cmake.org/cmake/help/latest/command/target_compile_definitions.html
|
||||
\title CMake: target_compile_definitions command
|
||||
*/
|
||||
/*!
|
||||
\externalpage https://cmake.org/cmake/help/latest/command/target_link_libraries.html
|
||||
\title CMake: target_link_libraries command
|
||||
|
Reference in New Issue
Block a user