summaryrefslogtreecommitdiffstats
path: root/examples/widgets/tools/plugandpaint
diff options
context:
space:
mode:
authorJoerg Bornemann <joerg.bornemann@qt.io>2022-06-22 17:05:23 +0200
committerJoerg Bornemann <joerg.bornemann@qt.io>2022-06-29 18:32:05 +0200
commit7ce82225f64d1d000b22fa59c4ef9a7f9b3a8984 (patch)
tree6899e1806bad9e0d64506b184b191ce83ec89cf7 /examples/widgets/tools/plugandpaint
parentc155734bfc89a62e5008e4c7b098c4c7f5c268b8 (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/plugandpaint')
-rw-r--r--examples/widgets/tools/plugandpaint/plugins/basictools/CMakeLists.txt3
-rw-r--r--examples/widgets/tools/plugandpaint/plugins/extrafilters/CMakeLists.txt3
2 files changed, 0 insertions, 6 deletions
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
)