From 64c6c943c7469c60e8d25c3efd630249740ae2f4 Mon Sep 17 00:00:00 2001 From: Tobias Hunger Date: Mon, 18 Mar 2019 19:26:24 +0100 Subject: CMake: Add more examples Change-Id: I7a8a3fd0a844a518592957fe07c6e707dd452d5f Reviewed-by: Alexandru Croitor --- examples/dbus/CMakeLists.txt | 13 ++++++++ examples/dbus/chat/CMakeLists.txt | 22 ++++++++++++++ examples/dbus/complexpingpong/CMakeLists.txt | 16 ++++++++++ examples/dbus/listnames/CMakeLists.txt | 22 ++++++++++++++ examples/dbus/pingpong/CMakeLists.txt | 35 ++++++++++++++++++++++ examples/dbus/remotecontrolledcar/CMakeLists.txt | 4 +++ .../dbus/remotecontrolledcar/car/CMakeLists.txt | 19 ++++++++++++ .../remotecontrolledcar/controller/CMakeLists.txt | 19 ++++++++++++ 8 files changed, 150 insertions(+) create mode 100644 examples/dbus/CMakeLists.txt create mode 100644 examples/dbus/chat/CMakeLists.txt create mode 100644 examples/dbus/complexpingpong/CMakeLists.txt create mode 100644 examples/dbus/listnames/CMakeLists.txt create mode 100644 examples/dbus/pingpong/CMakeLists.txt create mode 100644 examples/dbus/remotecontrolledcar/CMakeLists.txt create mode 100644 examples/dbus/remotecontrolledcar/car/CMakeLists.txt create mode 100644 examples/dbus/remotecontrolledcar/controller/CMakeLists.txt (limited to 'examples/dbus') 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 +) -- cgit v1.2.3