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 /examples/widgets/tools/styleplugin | |
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 'examples/widgets/tools/styleplugin')
-rw-r--r-- | examples/widgets/tools/styleplugin/plugin/CMakeLists.txt | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/examples/widgets/tools/styleplugin/plugin/CMakeLists.txt b/examples/widgets/tools/styleplugin/plugin/CMakeLists.txt index fb2b877ca6..b8c7289bed 100644 --- a/examples/widgets/tools/styleplugin/plugin/CMakeLists.txt +++ b/examples/widgets/tools/styleplugin/plugin/CMakeLists.txt @@ -1,8 +1,5 @@ qt_add_plugin(simplestyleplugin CLASS_NAME SimpleStylePlugin -) - -target_sources(simplestyleplugin PRIVATE simplestyle.cpp simplestyle.h simplestyleplugin.cpp simplestyleplugin.h ) |