summaryrefslogtreecommitdiffstats
path: root/examples/widgets/tools/plugandpaint
diff options
context:
space:
mode:
authorTobias Hunger <tobias.hunger@qt.io>2019-03-20 13:41:37 +0100
committerTobias Hunger <tobias.hunger@qt.io>2019-03-26 15:25:39 +0000
commitaa50b377a7d904e35cf3a26e4c8a054108011ffd (patch)
treeff45946e5779357aa547f00a8b5b9d0119a2b8f2 /examples/widgets/tools/plugandpaint
parent05ebd62f099b51b160a06e1257007bf437355fae (diff)
CMake: Add widgets examples
Change-Id: Ib6142b93df066e3658eb189b50ca74c455fe7e56 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'examples/widgets/tools/plugandpaint')
-rw-r--r--examples/widgets/tools/plugandpaint/CMakeLists.txt4
-rw-r--r--examples/widgets/tools/plugandpaint/app/CMakeLists.txt29
-rw-r--r--examples/widgets/tools/plugandpaint/plugins/CMakeLists.txt4
-rw-r--r--examples/widgets/tools/plugandpaint/plugins/basictools/CMakeLists.txt29
-rw-r--r--examples/widgets/tools/plugandpaint/plugins/extrafilters/CMakeLists.txt27
5 files changed, 93 insertions, 0 deletions
diff --git a/examples/widgets/tools/plugandpaint/CMakeLists.txt b/examples/widgets/tools/plugandpaint/CMakeLists.txt
new file mode 100644
index 0000000000..2bde4718b2
--- /dev/null
+++ b/examples/widgets/tools/plugandpaint/CMakeLists.txt
@@ -0,0 +1,4 @@
+# Generated from plugandpaint.pro.
+
+add_subdirectory(plugins)
+add_subdirectory(app)
diff --git a/examples/widgets/tools/plugandpaint/app/CMakeLists.txt b/examples/widgets/tools/plugandpaint/app/CMakeLists.txt
new file mode 100644
index 0000000000..e5bbbacec2
--- /dev/null
+++ b/examples/widgets/tools/plugandpaint/app/CMakeLists.txt
@@ -0,0 +1,29 @@
+# Generated from app.pro.
+
+#####################################################################
+## plugandpaint Binary:
+#####################################################################
+
+add_qt_executable(plugandpaint
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/tools/plugandpaint"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/tools/plugandpaint"
+ SOURCES
+ interfaces.h
+ main.cpp
+ mainwindow.cpp mainwindow.h
+ paintarea.cpp paintarea.h
+ plugindialog.cpp plugindialog.h
+ LIBRARIES
+ Qt::Widgets
+ pnp_basictools # special case
+)
+
+#### Keys ignored in scope 1:.:app.pro:<NONE>:
+# CONFIG = "install_ok"
+# DESTDIR = ".."
+
+## Scopes:
+#####################################################################
+
+# special case: Remove the rest
diff --git a/examples/widgets/tools/plugandpaint/plugins/CMakeLists.txt b/examples/widgets/tools/plugandpaint/plugins/CMakeLists.txt
new file mode 100644
index 0000000000..1e63da97ca
--- /dev/null
+++ b/examples/widgets/tools/plugandpaint/plugins/CMakeLists.txt
@@ -0,0 +1,4 @@
+# Generated from plugins.pro.
+
+add_subdirectory(basictools)
+add_subdirectory(extrafilters)
diff --git a/examples/widgets/tools/plugandpaint/plugins/basictools/CMakeLists.txt b/examples/widgets/tools/plugandpaint/plugins/basictools/CMakeLists.txt
new file mode 100644
index 0000000000..f736d09d41
--- /dev/null
+++ b/examples/widgets/tools/plugandpaint/plugins/basictools/CMakeLists.txt
@@ -0,0 +1,29 @@
+# Generated from basictools.pro.
+
+#####################################################################
+## qtLibraryTargetpnp_basictools Module:
+#####################################################################
+
+add_qt_plugin(pnp_basictools # special case
+ STATIC # special case
+ OUTPUT_DIRECTORY ../../plugins # special case
+ INSTALL_DIRECTORY ../../plugins # special case
+ SOURCES
+ basictoolsplugin.cpp basictoolsplugin.h
+ INCLUDE_DIRECTORIES
+ ../../app
+ LIBRARIES
+ Qt::Widgets
+)
+
+# CONFIG = "plugin" "static" "install_ok"
+# DESTDIR = "../../plugins"
+# INSTALLS = "target"
+# TEMPLATE = "lib"
+# target.path = "$$[QT_INSTALL_EXAMPLES]/widgets/tools/plugandpaint/plugins"
+
+## Scopes:
+#####################################################################
+
+#### Keys ignored in scope 2:.:basictools.pro:APPLE_UIKIT:
+# CONFIG = "debug_and_release"
diff --git a/examples/widgets/tools/plugandpaint/plugins/extrafilters/CMakeLists.txt b/examples/widgets/tools/plugandpaint/plugins/extrafilters/CMakeLists.txt
new file mode 100644
index 0000000000..a0447c833e
--- /dev/null
+++ b/examples/widgets/tools/plugandpaint/plugins/extrafilters/CMakeLists.txt
@@ -0,0 +1,27 @@
+# Generated from extrafilters.pro.
+
+#####################################################################
+## qtLibraryTargetpnp_extrafilters Module:
+#####################################################################
+
+add_qt_plugin(pnp_extrafilters_plugin TYPE plugin # special case
+ SOURCES
+ extrafiltersplugin.cpp extrafiltersplugin.h
+ INCLUDE_DIRECTORIES
+ ../../app
+ LIBRARIES
+ Qt::Widgets
+)
+
+#### Keys ignored in scope 1:.:extrafilters.pro:<NONE>:
+# CONFIG = "plugin" "install_ok"
+# DESTDIR = "../../plugins"
+# INSTALLS = "target"
+# TEMPLATE = "lib"
+# target.path = "$$[QT_INSTALL_EXAMPLES]/widgets/tools/plugandpaint/plugins"
+
+## Scopes:
+#####################################################################
+
+#### Keys ignored in scope 2:.:extrafilters.pro:APPLE_UIKIT:
+# CONFIG = "debug_and_release"