diff options
author | Joerg Bornemann <joerg.bornemann@qt.io> | 2022-06-22 17:05:23 +0200 |
---|---|---|
committer | Joerg Bornemann <joerg.bornemann@qt.io> | 2022-06-29 18:32:05 +0200 |
commit | 7ce82225f64d1d000b22fa59c4ef9a7f9b3a8984 (patch) | |
tree | 6899e1806bad9e0d64506b184b191ce83ec89cf7 /src/corelib/doc/src/cmake/qt_add_plugin.qdoc | |
parent | c155734bfc89a62e5008e4c7b098c4c7f5c268b8 (diff) |
CMake: Let qt6_add_plugin accept sources
The commands qt6_add_executable and qt6_add_library both accept a list
of sources that get automatically added to the created target.
Extend qt6_add_plugin to also accept sources for consistency.
Fixes: QTBUG-104189
Change-Id: Iad5d8c5b31551663be155d068d55e770e1a91b27
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/src/cmake/qt_add_plugin.qdoc')
-rw-r--r-- | src/corelib/doc/src/cmake/qt_add_plugin.qdoc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/corelib/doc/src/cmake/qt_add_plugin.qdoc b/src/corelib/doc/src/cmake/qt_add_plugin.qdoc index 89a68dbee2..e4bacc36a9 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] + sources... ) \endcode @@ -37,6 +38,9 @@ By default, the plugin will be created as a \c STATIC library if Qt was built statically, or as a \c MODULE library otherwise. You can override this default by explicitly providing the \c STATIC or \c SHARED option. +Any \c{sources} provided will be passed through to the internal call to +\c{add_library()}. + \note Non-static plugins are meant to be loaded dynamically at runtime, not linked to at build time. CMake differentiates between these two scenarios by providing the \c MODULE library type for dynamically loaded libraries, and |