diff options
author | Dominik Holland <dominik.holland@qt.io> | 2024-07-25 13:50:12 +0200 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2024-07-26 09:49:51 +0000 |
commit | 8a478f79a82d19aa762c4deb1cf701f5068d7d2c (patch) | |
tree | 2cf5f4e3361eecd0433138b816bd1a33fe5819e4 | |
parent | 7ff86240cc6c30bc982d1f178a344e644222c7cb (diff) |
doc: Update the the recommended CMake usage documentation
Change-Id: I5f6cd2a9d4e2f81ad09d609dd4c9d1d5a654cf8d
Reviewed-by: Zoltan Gera <zoltan.gera@qt.io>
Reviewed-by: Robert Griebl <robert.griebl@qt.io>
(cherry picked from commit 9b38bc5cb8b98b631f1d857931a14b5224de6f14)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r-- | src/interfaceframework/doc/src/ifcodegen/buildsystem-integration.qdoc | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/interfaceframework/doc/src/ifcodegen/buildsystem-integration.qdoc b/src/interfaceframework/doc/src/ifcodegen/buildsystem-integration.qdoc index c8503b39..e47b1d46 100644 --- a/src/interfaceframework/doc/src/ifcodegen/buildsystem-integration.qdoc +++ b/src/interfaceframework/doc/src/ifcodegen/buildsystem-integration.qdoc @@ -143,13 +143,23 @@ several ways for generating QML plugins and registering the QML types. The preferred way in CMake is to use the new QML Type registration system, which is available in the QtInterfaceFramework module from version 6.3 onwards. In that version the generated code is already using the new registration macros and provides all the necessary information for CMake to generate -the rest: +the rest. Since 6.8 the new convenient CMake macros can be used to generate a QML module: + +\badcode +qt_ifcodegen_add_qml_module(MyModule + IDL_FILES mymodule.qface + TEMPLATE frontend +) +\endcode + +\section2 Before 6.8 \badcode qt_ifcodegen_extend_target(MyModule NO_GENERATE PREFIX MYMODULE IDL_FILES mymodule.qface + TEMPLATE frontend ) qt_add_qml_module(MyModule |