summaryrefslogtreecommitdiffstats
path: root/examples/remoteobjects/clientapp
diff options
context:
space:
mode:
authorJoerg Bornemann <joerg.bornemann@qt.io>2019-10-01 08:13:59 +0200
committerJoerg Bornemann <joerg.bornemann@qt.io>2019-11-12 11:40:58 +0000
commita959d167858aa4708b82e7b61efc9db7243c1844 (patch)
tree147e7d624bc12b1b93c4307a0efe92034c6e63a1 /examples/remoteobjects/clientapp
parent1bc8cfb21bb01ba5d343ec92fc8339fc72ee83ba (diff)
Port QtRemoteObjects to CMake
Fixes: QTBUG-78175 Change-Id: I9e75992ac906778b9d04ccbe132445728ef65789 Reviewed-by: Qt CMake Build Bot Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'examples/remoteobjects/clientapp')
-rw-r--r--examples/remoteobjects/clientapp/CMakeLists.txt49
1 files changed, 49 insertions, 0 deletions
diff --git a/examples/remoteobjects/clientapp/CMakeLists.txt b/examples/remoteobjects/clientapp/CMakeLists.txt
new file mode 100644
index 0000000..6b1446c
--- /dev/null
+++ b/examples/remoteobjects/clientapp/CMakeLists.txt
@@ -0,0 +1,49 @@
+# Generated from clientapp.pro.
+
+cmake_minimum_required(VERSION 3.14)
+project(clientapp LANGUAGES CXX)
+
+set(CMAKE_INCLUDE_CURRENT_DIR ON)
+
+set(CMAKE_AUTOMOC ON)
+set(CMAKE_AUTORCC ON)
+set(CMAKE_AUTOUIC ON)
+
+set(INSTALL_EXAMPLEDIR "examples/remoteobjects/clientapp")
+
+find_package(Qt6 COMPONENTS Core)
+find_package(Qt6 COMPONENTS Gui)
+find_package(Qt6 COMPONENTS RemoteObjects)
+find_package(Qt6 COMPONENTS Quick)
+
+add_qt_gui_executable(clientapp
+ main.cpp
+)
+target_link_libraries(clientapp PUBLIC
+ Qt::Core
+ Qt::Gui
+ Qt::Quick
+ Qt::RemoteObjects
+)
+
+
+# Resources:
+set(clientapp_resource_files
+ "qml/plugins.qml"
+ "qml/plugins0.qml"
+ "qml/plugins1.qml"
+ "qml/plugins2.qml"
+)
+
+qt6_add_resources(clientapp "clientapp"
+ PREFIX
+ "/qml"
+ FILES
+ ${clientapp_resource_files}
+)
+
+install(TARGETS clientapp
+ RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
+ BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
+)