summaryrefslogtreecommitdiffstats
path: root/examples/dbus
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/dbus
parenta0a94576fae26bcbbf3823a6ee4b554886e84925 (diff)
CMake: Add more examples
Change-Id: I7a8a3fd0a844a518592957fe07c6e707dd452d5f Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'examples/dbus')
-rw-r--r--examples/dbus/CMakeLists.txt13
-rw-r--r--examples/dbus/chat/CMakeLists.txt22
-rw-r--r--examples/dbus/complexpingpong/CMakeLists.txt16
-rw-r--r--examples/dbus/listnames/CMakeLists.txt22
-rw-r--r--examples/dbus/pingpong/CMakeLists.txt35
-rw-r--r--examples/dbus/remotecontrolledcar/CMakeLists.txt4
-rw-r--r--examples/dbus/remotecontrolledcar/car/CMakeLists.txt19
-rw-r--r--examples/dbus/remotecontrolledcar/controller/CMakeLists.txt19
8 files changed, 150 insertions, 0 deletions
diff --git a/examples/dbus/CMakeLists.txt b/examples/dbus/CMakeLists.txt
new file mode 100644
index 0000000000..42a3df658a
--- /dev/null
+++ b/examples/dbus/CMakeLists.txt
@@ -0,0 +1,13 @@
+# Generated from dbus.pro.
+
+add_subdirectory(listnames)
+add_subdirectory(pingpong)
+
+if(QT_FEATURE_process)
+ add_subdirectory(complexpingpong)
+endif()
+
+if(TARGET Qt::Widgets)
+ add_subdirectory(chat)
+ add_subdirectory(remotecontrolledcar)
+endif()
diff --git a/examples/dbus/chat/CMakeLists.txt b/examples/dbus/chat/CMakeLists.txt
new file mode 100644
index 0000000000..68abe95da6
--- /dev/null
+++ b/examples/dbus/chat/CMakeLists.txt
@@ -0,0 +1,22 @@
+# Generated from chat.pro.
+
+#####################################################################
+## chat Binary:
+#####################################################################
+
+add_qt_executable(chat
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/dbus/chat"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/dbus/chat"
+ SOURCES
+ chat.cpp chat.h
+ chatmainwindow.ui
+ chatsetnickname.ui
+ DBUS_ADAPTOR_SOURCES
+ org.example.chat.xml
+ DBUS_INTERFACE_SOURCES
+ org.example.chat.xml
+ LIBRARIES
+ Qt::DBus
+ Qt::Widgets
+)
diff --git a/examples/dbus/complexpingpong/CMakeLists.txt b/examples/dbus/complexpingpong/CMakeLists.txt
new file mode 100644
index 0000000000..cccb9584af
--- /dev/null
+++ b/examples/dbus/complexpingpong/CMakeLists.txt
@@ -0,0 +1,16 @@
+# Generated from complexpong.pro.
+
+#####################################################################
+## complexpong Binary:
+#####################################################################
+
+add_qt_executable(complexpong
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/dbus/complexpingpong"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/dbus/complexpingpong"
+ SOURCES
+ complexpong.cpp complexpong.h
+ LIBRARIES
+ # Remove: gui
+ Qt::DBus
+)
diff --git a/examples/dbus/listnames/CMakeLists.txt b/examples/dbus/listnames/CMakeLists.txt
new file mode 100644
index 0000000000..eb622b0ef6
--- /dev/null
+++ b/examples/dbus/listnames/CMakeLists.txt
@@ -0,0 +1,22 @@
+# Generated from listnames.pro.
+
+#####################################################################
+## listnames Binary:
+#####################################################################
+
+add_qt_executable(listnames
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/dbus/listnames"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/dbus/listnames"
+ SOURCES
+ listnames.cpp
+ LIBRARIES
+ # Remove: gui
+ Qt::DBus
+)
+
+## Scopes:
+#####################################################################
+
+#### Keys ignored in scope 2:.:listnames.pro:WIN32:
+# CONFIG = "console"
diff --git a/examples/dbus/pingpong/CMakeLists.txt b/examples/dbus/pingpong/CMakeLists.txt
new file mode 100644
index 0000000000..0979c8d487
--- /dev/null
+++ b/examples/dbus/pingpong/CMakeLists.txt
@@ -0,0 +1,35 @@
+# Generated from pingpong.pro.
+
+#####################################################################
+## ping Binary:
+#####################################################################
+
+add_qt_executable(ping
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/dbus/pingpong"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/dbus/pingpong"
+ SOURCES
+ ping.cpp
+ ping-common.h
+ LIBRARIES
+ # Remove: gui
+ Qt::DBus
+)
+#####################################################################
+## pong Binary:
+#####################################################################
+
+add_qt_executable(pong
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/dbus/pingpong"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/dbus/pingpong"
+ SOURCES
+ ping-common.h
+ pong.cpp pong.h
+ LIBRARIES
+ # Remove: gui
+ Qt::DBus
+)
+
+if(WIN32)
+endif()
diff --git a/examples/dbus/remotecontrolledcar/CMakeLists.txt b/examples/dbus/remotecontrolledcar/CMakeLists.txt
new file mode 100644
index 0000000000..4d41919962
--- /dev/null
+++ b/examples/dbus/remotecontrolledcar/CMakeLists.txt
@@ -0,0 +1,4 @@
+# Generated from remotecontrolledcar.pro.
+
+add_subdirectory(car)
+add_subdirectory(controller)
diff --git a/examples/dbus/remotecontrolledcar/car/CMakeLists.txt b/examples/dbus/remotecontrolledcar/car/CMakeLists.txt
new file mode 100644
index 0000000000..a8aed5413a
--- /dev/null
+++ b/examples/dbus/remotecontrolledcar/car/CMakeLists.txt
@@ -0,0 +1,19 @@
+# Generated from car.pro.
+
+#####################################################################
+## car Binary:
+#####################################################################
+
+add_qt_executable(car
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/dbus/remotecontrolledcar/car"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/dbus/remotecontrolledcar/car"
+ SOURCES
+ car.cpp car.h
+ main.cpp
+ DBUS_ADAPTOR_SOURCES
+ car.xml
+ LIBRARIES
+ Qt::DBus
+ Qt::Widgets
+)
diff --git a/examples/dbus/remotecontrolledcar/controller/CMakeLists.txt b/examples/dbus/remotecontrolledcar/controller/CMakeLists.txt
new file mode 100644
index 0000000000..c9902e2519
--- /dev/null
+++ b/examples/dbus/remotecontrolledcar/controller/CMakeLists.txt
@@ -0,0 +1,19 @@
+# Generated from controller.pro.
+
+#####################################################################
+## controller Binary:
+#####################################################################
+
+add_qt_executable(controller
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/dbus/remotecontrolledcar/controller"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/dbus/remotecontrolledcar/controller"
+ SOURCES
+ controller.cpp controller.h controller.ui
+ main.cpp
+ DBUS_INTERFACE_SOURCES
+ car.xml
+ LIBRARIES
+ Qt::DBus
+ Qt::Widgets
+)