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 | |
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')
4 files changed, 0 insertions, 12 deletions
diff --git a/examples/widgets/tools/echoplugin/plugin/CMakeLists.txt b/examples/widgets/tools/echoplugin/plugin/CMakeLists.txt index 7d63180a87..25b10b5072 100644 --- a/examples/widgets/tools/echoplugin/plugin/CMakeLists.txt +++ b/examples/widgets/tools/echoplugin/plugin/CMakeLists.txt @@ -1,8 +1,5 @@ qt_add_plugin(echoplugin CLASS_NAME EchoPlugin -) - -target_sources(echoplugin PRIVATE echoplugin.cpp echoplugin.h ) diff --git a/examples/widgets/tools/plugandpaint/plugins/basictools/CMakeLists.txt b/examples/widgets/tools/plugandpaint/plugins/basictools/CMakeLists.txt index 638bb53ef6..2ff6787f22 100644 --- a/examples/widgets/tools/plugandpaint/plugins/basictools/CMakeLists.txt +++ b/examples/widgets/tools/plugandpaint/plugins/basictools/CMakeLists.txt @@ -1,9 +1,6 @@ qt_add_plugin(pnp_basictools STATIC CLASS_NAME BasicToolsPlugin -) - -target_sources(pnp_basictools PRIVATE basictoolsplugin.cpp basictoolsplugin.h ) diff --git a/examples/widgets/tools/plugandpaint/plugins/extrafilters/CMakeLists.txt b/examples/widgets/tools/plugandpaint/plugins/extrafilters/CMakeLists.txt index 4a3dd45de9..d47e9fb6b6 100644 --- a/examples/widgets/tools/plugandpaint/plugins/extrafilters/CMakeLists.txt +++ b/examples/widgets/tools/plugandpaint/plugins/extrafilters/CMakeLists.txt @@ -1,8 +1,5 @@ qt_add_plugin(pnp_extrafilters CLASS_NAME ExtraFiltersPlugin -) - -target_sources(pnp_extrafilters PRIVATE extrafiltersplugin.cpp extrafiltersplugin.h ) 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 ) |