From c93d279222e253cf6d525ba80a37dbd20339e012 Mon Sep 17 00:00:00 2001 From: Joerg Bornemann Date: Mon, 16 May 2022 16:43:30 +0200 Subject: [PATCH] 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 --- src/corelib/doc/src/cmake/qt_add_resources.qdoc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/corelib/doc/src/cmake/qt_add_resources.qdoc b/src/corelib/doc/src/cmake/qt_add_resources.qdoc index a6c30bdc3dd..7de9b948543 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( [PREFIX ] [LANG ] [BASE ] + [OUTPUT_TARGETS ] [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.