diff options
author | Joerg Bornemann <joerg.bornemann@qt.io> | 2022-05-16 16:43:30 +0200 |
---|---|---|
committer | Joerg Bornemann <joerg.bornemann@qt.io> | 2022-05-17 11:49:40 +0200 |
commit | c93d279222e253cf6d525ba80a37dbd20339e012 (patch) | |
tree | 544b35c79843d9c2a1be1c3634a30757bcc8c04b /src/corelib/doc/src/cmake/qt_add_resources.qdoc | |
parent | 6dffc1c438062e69609e281e56633f4a7821402e (diff) |
Doc: Document qt_add_resources' OUTPUT_TARGETS argument
Originally, this argument was meant for internal use only. But it
turned out useful for user projects too.
Pick-to: 6.2 6.3
Change-Id: I58af5ca8303fa9166d41a0538a60913d1fba9784
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'src/corelib/doc/src/cmake/qt_add_resources.qdoc')
-rw-r--r-- | src/corelib/doc/src/cmake/qt_add_resources.qdoc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/corelib/doc/src/cmake/qt_add_resources.qdoc b/src/corelib/doc/src/cmake/qt_add_resources.qdoc index a6c30bdc3d..7de9b94854 100644 --- a/src/corelib/doc/src/cmake/qt_add_resources.qdoc +++ b/src/corelib/doc/src/cmake/qt_add_resources.qdoc @@ -28,6 +28,7 @@ qt_add_resources(<TARGET> <RESOURCE_NAME> [PREFIX <PATH>] [LANG <LANGUAGE>] [BASE <PATH>] + [OUTPUT_TARGETS <VARIABLE_NAME>] [FILES ...] [OPTIONS ...]) \endcode @@ -68,6 +69,11 @@ example, if \c BASE is \c{"assets"} and \c FILES is Alias settings for files need to be set via the \c QT_RESOURCE_ALIAS source file property. +When using this command with static libraries, one or more special targets will +be generated. Should you wish to perform additional processing on these targets, +pass a variable name to the \c OUTPUT_TARGETS parameter. The \c qt_add_resources +function stores the names of the special targets in the specified variable. + \section1 Arguments of both variants You can set additional \c{OPTIONS} that should be added to the \c{rcc} calls. |