summaryrefslogtreecommitdiffstats
path: root/examples/qtconcurrent
diff options
context:
space:
mode:
authorTobias Hunger <tobias.hunger@qt.io>2019-03-18 19:26:24 +0100
committerTobias Hunger <tobias.hunger@qt.io>2019-03-26 13:03:01 +0000
commit64c6c943c7469c60e8d25c3efd630249740ae2f4 (patch)
tree4677ee8024b245d03ac647b11928930c1ad56304 /examples/qtconcurrent
parenta0a94576fae26bcbbf3823a6ee4b554886e84925 (diff)
CMake: Add more examples
Change-Id: I7a8a3fd0a844a518592957fe07c6e707dd452d5f Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'examples/qtconcurrent')
-rw-r--r--examples/qtconcurrent/CMakeLists.txt9
-rw-r--r--examples/qtconcurrent/imagescaling/CMakeLists.txt17
-rw-r--r--examples/qtconcurrent/map/CMakeLists.txt20
-rw-r--r--examples/qtconcurrent/progressdialog/CMakeLists.txt18
-rw-r--r--examples/qtconcurrent/runfunction/CMakeLists.txt19
-rw-r--r--examples/qtconcurrent/wordcount/CMakeLists.txt19
6 files changed, 102 insertions, 0 deletions
diff --git a/examples/qtconcurrent/CMakeLists.txt b/examples/qtconcurrent/CMakeLists.txt
new file mode 100644
index 0000000000..13cfed8773
--- /dev/null
+++ b/examples/qtconcurrent/CMakeLists.txt
@@ -0,0 +1,9 @@
+if(TARGET Qt::Gui)
+ add_subdirectory(map)
+endif()
+if(TARGET Qt::Widgets)
+ add_subdirectory(imagescaling)
+ add_subdirectory(progressdialog)
+ add_subdirectory(runfunction)
+ add_subdirectory(wordcount)
+endif()
diff --git a/examples/qtconcurrent/imagescaling/CMakeLists.txt b/examples/qtconcurrent/imagescaling/CMakeLists.txt
new file mode 100644
index 0000000000..0de3f26c5e
--- /dev/null
+++ b/examples/qtconcurrent/imagescaling/CMakeLists.txt
@@ -0,0 +1,17 @@
+# Generated from imagescaling.pro.
+
+#####################################################################
+## imagescaling Binary:
+#####################################################################
+
+add_qt_executable(imagescaling
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/qtconcurrent/imagescaling"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/qtconcurrent/imagescaling"
+ SOURCES
+ imagescaling.cpp imagescaling.h
+ main.cpp
+ LIBRARIES
+ Qt::Concurrent
+ Qt::Widgets
+)
diff --git a/examples/qtconcurrent/map/CMakeLists.txt b/examples/qtconcurrent/map/CMakeLists.txt
new file mode 100644
index 0000000000..147b91236b
--- /dev/null
+++ b/examples/qtconcurrent/map/CMakeLists.txt
@@ -0,0 +1,20 @@
+# Generated from map.pro.
+
+#####################################################################
+## mapdemo Binary:
+#####################################################################
+
+add_qt_executable(mapdemo
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/qtconcurrent/map"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/qtconcurrent/map"
+ SOURCES
+ main.cpp
+ LIBRARIES
+ Qt::Concurrent
+ Qt::Gui # special case
+)
+
+#### Keys ignored in scope 1:.:map.pro:<NONE>:
+# CONFIG = "-app_bundle"
+# TEMPLATE = "app"
diff --git a/examples/qtconcurrent/progressdialog/CMakeLists.txt b/examples/qtconcurrent/progressdialog/CMakeLists.txt
new file mode 100644
index 0000000000..3aae4af084
--- /dev/null
+++ b/examples/qtconcurrent/progressdialog/CMakeLists.txt
@@ -0,0 +1,18 @@
+# Generated from progressdialog.pro.
+
+#####################################################################
+## progressdialog Binary:
+#####################################################################
+
+add_qt_executable(progressdialog
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/qtconcurrent/progressdialog"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/qtconcurrent/progressdialog"
+ SOURCES
+ main.cpp
+ LIBRARIES
+ Qt::Concurrent
+ Qt::Widgets
+)
+
+#### Keys ignored in scope 1:.:progressdialog.pro:<NONE>:
+# CONFIG = "console"
diff --git a/examples/qtconcurrent/runfunction/CMakeLists.txt b/examples/qtconcurrent/runfunction/CMakeLists.txt
new file mode 100644
index 0000000000..c400b44cf6
--- /dev/null
+++ b/examples/qtconcurrent/runfunction/CMakeLists.txt
@@ -0,0 +1,19 @@
+# Generated from runfunction.pro.
+
+#####################################################################
+## runfunction Binary:
+#####################################################################
+
+add_qt_executable(runfunction
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/qtconcurrent/runfunction"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/qtconcurrent/runfunction"
+ SOURCES
+ main.cpp
+ LIBRARIES
+ Qt::Concurrent
+ Qt::Widgets
+)
+
+#### Keys ignored in scope 1:.:runfunction.pro:<NONE>:
+# CONFIG = "-app_bundle"
diff --git a/examples/qtconcurrent/wordcount/CMakeLists.txt b/examples/qtconcurrent/wordcount/CMakeLists.txt
new file mode 100644
index 0000000000..9bb2ac58d7
--- /dev/null
+++ b/examples/qtconcurrent/wordcount/CMakeLists.txt
@@ -0,0 +1,19 @@
+# Generated from wordcount.pro.
+
+#####################################################################
+## wordcount Binary:
+#####################################################################
+
+add_qt_executable(wordcount
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/qtconcurrent/wordcount"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/qtconcurrent/wordcount"
+ SOURCES
+ main.cpp
+ LIBRARIES
+ Qt::Concurrent
+ Qt::Widgets
+)
+
+#### Keys ignored in scope 1:.:wordcount.pro:<NONE>:
+# CONFIG = "-app_bundle"