diff options
author | Joerg Bornemann <joerg.bornemann@qt.io> | 2022-09-16 16:27:45 +0200 |
---|---|---|
committer | Joerg Bornemann <joerg.bornemann@qt.io> | 2022-09-23 13:53:27 +0200 |
commit | 67de96852d2c30ca241740c4b45d1414f540dc32 (patch) | |
tree | 33b31225fecfbcce7572580623c58309124a8c8d /src/corelib/doc | |
parent | de8018557568465305cf3c9eb6e85f9a7608c26e (diff) |
CMake: Add finalization to plugins created with qt_add_plugin
Add the MANUAL_FINALIZATION option to qt_add_plugin and run
qt_finalize_target like we do for qt_add_executable and qt_add_library.
Currently, the only user-visible effect is that resource files are put
into a FOLDER and not underneath a XXX_other_files target.
Change-Id: I430d87b5357f6d2ed7fe32198a73eb919f393dd8
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'src/corelib/doc')
-rw-r--r-- | src/corelib/doc/src/cmake/qt_add_library.qdoc | 1 | ||||
-rw-r--r-- | src/corelib/doc/src/cmake/qt_add_plugin.qdoc | 14 |
2 files changed, 15 insertions, 0 deletions
diff --git a/src/corelib/doc/src/cmake/qt_add_library.qdoc b/src/corelib/doc/src/cmake/qt_add_library.qdoc index 52b85d0476..3d932b5d5d 100644 --- a/src/corelib/doc/src/cmake/qt_add_library.qdoc +++ b/src/corelib/doc/src/cmake/qt_add_library.qdoc @@ -51,6 +51,7 @@ library created. The \c{qt_add_library()} command does not consider Any \c{sources} provided will be passed through to the internal call to \c{add_library()}. +\target qt_add_library finalization \section2 Finalization After a target is created, further processing or \e{finalization} steps may be diff --git a/src/corelib/doc/src/cmake/qt_add_plugin.qdoc b/src/corelib/doc/src/cmake/qt_add_plugin.qdoc index e4bacc36a9..43c40d544b 100644 --- a/src/corelib/doc/src/cmake/qt_add_plugin.qdoc +++ b/src/corelib/doc/src/cmake/qt_add_plugin.qdoc @@ -21,6 +21,7 @@ qt_add_plugin(target [SHARED | STATIC] [CLASS_NAME class_name] [OUTPUT_TARGETS variable_name] + [MANUAL_FINALIZATION] sources... ) \endcode @@ -67,4 +68,17 @@ project should also install these internal targets. The names of these targets can be obtained by providing the \c OUTPUT_TARGETS option, followed by the name of a variable in which to return the target list. +\section2 Finalization + +After a target is created, further processing or \e{finalization} steps may be +needed. The finalization processing is implemented by the +\l{qt6_finalize_target}{qt_finalize_target()} command. + +For details and the meaning of the \c{MANUAL_FINALIZATION} option, refer to the +\l{qt_add_library finalization}{finalization documentation} for +\c{qt_add_library}. + +\sa {qt6_finalize_target}{qt_finalize_target()}, + {qt6_add_executable}{qt_add_executable()} + */ |