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>
This commit is contained in:
Joerg Bornemann 2022-05-16 16:43:30 +02:00
parent 6dffc1c438
commit c93d279222

View File

@ -28,6 +28,7 @@ qt_add_resources(<TARGET> <RESOURCE_NAME>
[PREFIX <PATH>] [PREFIX <PATH>]
[LANG <LANGUAGE>] [LANG <LANGUAGE>]
[BASE <PATH>] [BASE <PATH>]
[OUTPUT_TARGETS <VARIABLE_NAME>]
[FILES ...] [OPTIONS ...]) [FILES ...] [OPTIONS ...])
\endcode \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 Alias settings for files need to be set via the \c QT_RESOURCE_ALIAS source file
property. 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 \section1 Arguments of both variants
You can set additional \c{OPTIONS} that should be added to the \c{rcc} calls. You can set additional \c{OPTIONS} that should be added to the \c{rcc} calls.