summaryrefslogtreecommitdiffstats
path: root/examples/widgets/statemachine
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/statemachine
parent05ebd62f099b51b160a06e1257007bf437355fae (diff)
CMake: Add widgets examples
Change-Id: Ib6142b93df066e3658eb189b50ca74c455fe7e56 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'examples/widgets/statemachine')
-rw-r--r--examples/widgets/statemachine/CMakeLists.txt11
-rw-r--r--examples/widgets/statemachine/eventtransitions/CMakeLists.txt15
-rw-r--r--examples/widgets/statemachine/factorial/CMakeLists.txt22
-rw-r--r--examples/widgets/statemachine/pingpong/CMakeLists.txt22
-rw-r--r--examples/widgets/statemachine/rogue/CMakeLists.txt17
-rw-r--r--examples/widgets/statemachine/trafficlight/CMakeLists.txt15
-rw-r--r--examples/widgets/statemachine/twowaybutton/CMakeLists.txt15
7 files changed, 117 insertions, 0 deletions
diff --git a/examples/widgets/statemachine/CMakeLists.txt b/examples/widgets/statemachine/CMakeLists.txt
new file mode 100644
index 0000000000..8527fcbc69
--- /dev/null
+++ b/examples/widgets/statemachine/CMakeLists.txt
@@ -0,0 +1,11 @@
+# Generated from statemachine.pro.
+
+add_subdirectory(factorial)
+add_subdirectory(pingpong)
+
+if(TARGET Qt::Widgets)
+ add_subdirectory(eventtransitions)
+ add_subdirectory(rogue)
+ add_subdirectory(trafficlight)
+ add_subdirectory(twowaybutton)
+endif()
diff --git a/examples/widgets/statemachine/eventtransitions/CMakeLists.txt b/examples/widgets/statemachine/eventtransitions/CMakeLists.txt
new file mode 100644
index 0000000000..0fc20f59ae
--- /dev/null
+++ b/examples/widgets/statemachine/eventtransitions/CMakeLists.txt
@@ -0,0 +1,15 @@
+# Generated from eventtransitions.pro.
+
+#####################################################################
+## eventtransitions Binary:
+#####################################################################
+
+add_qt_executable(eventtransitions
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/statemachine/eventtransitions"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/statemachine/eventtransitions"
+ SOURCES
+ main.cpp
+ LIBRARIES
+ Qt::Widgets
+)
diff --git a/examples/widgets/statemachine/factorial/CMakeLists.txt b/examples/widgets/statemachine/factorial/CMakeLists.txt
new file mode 100644
index 0000000000..e38995220e
--- /dev/null
+++ b/examples/widgets/statemachine/factorial/CMakeLists.txt
@@ -0,0 +1,22 @@
+# Generated from factorial.pro.
+
+#####################################################################
+## factorial Binary:
+#####################################################################
+
+add_qt_executable(factorial
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/statemachine/factorial"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/statemachine/factorial"
+ SOURCES
+ main.cpp
+)
+
+## Scopes:
+#####################################################################
+
+#### Keys ignored in scope 2:.:factorial.pro:WIN32:
+# CONFIG = "console"
+
+#### Keys ignored in scope 3:.:factorial.pro:APPLE_OSX:
+# CONFIG = "-app_bundle"
diff --git a/examples/widgets/statemachine/pingpong/CMakeLists.txt b/examples/widgets/statemachine/pingpong/CMakeLists.txt
new file mode 100644
index 0000000000..b911bd727f
--- /dev/null
+++ b/examples/widgets/statemachine/pingpong/CMakeLists.txt
@@ -0,0 +1,22 @@
+# Generated from pingpong.pro.
+
+#####################################################################
+## pingpong Binary:
+#####################################################################
+
+add_qt_executable(pingpong
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/statemachine/pingpong"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/statemachine/pingpong"
+ SOURCES
+ main.cpp
+)
+
+## Scopes:
+#####################################################################
+
+#### Keys ignored in scope 2:.:pingpong.pro:WIN32:
+# CONFIG = "console"
+
+#### Keys ignored in scope 3:.:pingpong.pro:APPLE_OSX:
+# CONFIG = "-app_bundle"
diff --git a/examples/widgets/statemachine/rogue/CMakeLists.txt b/examples/widgets/statemachine/rogue/CMakeLists.txt
new file mode 100644
index 0000000000..a6a1a473e1
--- /dev/null
+++ b/examples/widgets/statemachine/rogue/CMakeLists.txt
@@ -0,0 +1,17 @@
+# Generated from rogue.pro.
+
+#####################################################################
+## rogue Binary:
+#####################################################################
+
+add_qt_executable(rogue
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/statemachine/rogue"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/statemachine/rogue"
+ SOURCES
+ main.cpp
+ movementtransition.h
+ window.cpp window.h
+ LIBRARIES
+ Qt::Widgets
+)
diff --git a/examples/widgets/statemachine/trafficlight/CMakeLists.txt b/examples/widgets/statemachine/trafficlight/CMakeLists.txt
new file mode 100644
index 0000000000..52f9fb3c6c
--- /dev/null
+++ b/examples/widgets/statemachine/trafficlight/CMakeLists.txt
@@ -0,0 +1,15 @@
+# Generated from trafficlight.pro.
+
+#####################################################################
+## trafficlight Binary:
+#####################################################################
+
+add_qt_executable(trafficlight
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/statemachine/trafficlight"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/statemachine/trafficlight"
+ SOURCES
+ main.cpp
+ LIBRARIES
+ Qt::Widgets
+)
diff --git a/examples/widgets/statemachine/twowaybutton/CMakeLists.txt b/examples/widgets/statemachine/twowaybutton/CMakeLists.txt
new file mode 100644
index 0000000000..c5f14b7514
--- /dev/null
+++ b/examples/widgets/statemachine/twowaybutton/CMakeLists.txt
@@ -0,0 +1,15 @@
+# Generated from twowaybutton.pro.
+
+#####################################################################
+## twowaybutton Binary:
+#####################################################################
+
+add_qt_executable(twowaybutton
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/statemachine/twowaybutton"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/statemachine/twowaybutton"
+ SOURCES
+ main.cpp
+ LIBRARIES
+ Qt::Widgets
+)