summaryrefslogtreecommitdiffstats
path: root/examples/remoteobjects
diff options
context:
space:
mode:
authorAlexandru Croitor <alexandru.croitor@qt.io>2020-06-16 15:12:15 +0200
committerAlexandru Croitor <alexandru.croitor@qt.io>2020-06-16 15:12:38 +0200
commit46889e59bad8420269c1deb97f07235aed4f3be5 (patch)
tree67edbf0ccf0716f4de83dcae3616a0ced84ef600 /examples/remoteobjects
parent28d94fd0d92f3ea4b8c1e5d5d74f4a51e500d2d5 (diff)
parent3707937ca78d21a21aecd0e671821dd4759cf385 (diff)
Merge remote-tracking branch 'origin/wip/cmake' into dev
Conflicts: dependencies.yaml Change-Id: I01be97466ce583c1852c00986d1e925dda80038c
Diffstat (limited to 'examples/remoteobjects')
-rw-r--r--examples/remoteobjects/.prev_CMakeLists.txt20
-rw-r--r--examples/remoteobjects/CMakeLists.txt20
-rw-r--r--examples/remoteobjects/clientapp/CMakeLists.txt49
-rw-r--r--examples/remoteobjects/cppclient/CMakeLists.txt33
-rw-r--r--examples/remoteobjects/modelviewclient/CMakeLists.txt33
-rw-r--r--examples/remoteobjects/modelviewserver/CMakeLists.txt33
-rw-r--r--examples/remoteobjects/plugins/CMakeLists.txt44
-rw-r--r--examples/remoteobjects/qmlmodelviewclient/CMakeLists.txt48
-rw-r--r--examples/remoteobjects/server/CMakeLists.txt34
-rw-r--r--examples/remoteobjects/simpleswitch/CMakeLists.txt7
-rw-r--r--examples/remoteobjects/simpleswitch/directconnectclient/CMakeLists.txt34
-rw-r--r--examples/remoteobjects/simpleswitch/directconnectdynamicclient/CMakeLists.txt30
-rw-r--r--examples/remoteobjects/simpleswitch/directconnectserver/CMakeLists.txt34
-rw-r--r--examples/remoteobjects/simpleswitch/registryconnectedclient/CMakeLists.txt30
-rw-r--r--examples/remoteobjects/simpleswitch/registryconnectedserver/CMakeLists.txt34
-rw-r--r--examples/remoteobjects/ssl/CMakeLists.txt4
-rw-r--r--examples/remoteobjects/ssl/sslcppclient/CMakeLists.txt80
-rw-r--r--examples/remoteobjects/ssl/sslserver/CMakeLists.txt60
-rw-r--r--examples/remoteobjects/websockets/CMakeLists.txt6
-rw-r--r--examples/remoteobjects/websockets/wsclient/CMakeLists.txt82
-rw-r--r--examples/remoteobjects/websockets/wsserver/CMakeLists.txt82
21 files changed, 797 insertions, 0 deletions
diff --git a/examples/remoteobjects/.prev_CMakeLists.txt b/examples/remoteobjects/.prev_CMakeLists.txt
new file mode 100644
index 0000000..64958e1
--- /dev/null
+++ b/examples/remoteobjects/.prev_CMakeLists.txt
@@ -0,0 +1,20 @@
+# Generated from remoteobjects.pro.
+
+add_subdirectory(server)
+add_subdirectory(cppclient)
+add_subdirectory(simpleswitch)
+add_subdirectory(websockets)
+if(TARGET Qt::Widgets)
+ add_subdirectory(modelviewclient)
+ add_subdirectory(modelviewserver)
+endif()
+if(QT_CONFIG___contains___ssl)
+ add_subdirectory(ssl)
+endif()
+if(TARGET Qt::Quick)
+ add_subdirectory(plugins)
+ add_subdirectory(clientapp)
+endif()
+if(TARGET Qt::Quick AND UNIX AND NOT ANDROID)
+ add_subdirectory(qmlmodelviewclient)
+endif()
diff --git a/examples/remoteobjects/CMakeLists.txt b/examples/remoteobjects/CMakeLists.txt
new file mode 100644
index 0000000..ec71f6f
--- /dev/null
+++ b/examples/remoteobjects/CMakeLists.txt
@@ -0,0 +1,20 @@
+# Generated from remoteobjects.pro.
+
+add_subdirectory(server)
+add_subdirectory(cppclient)
+add_subdirectory(simpleswitch)
+add_subdirectory(websockets)
+if(TARGET Qt::Widgets)
+ add_subdirectory(modelviewclient)
+ add_subdirectory(modelviewserver)
+endif()
+if(QT_FEATURE_ssl) # special case
+ add_subdirectory(ssl)
+endif()
+if(TARGET Qt::Quick)
+ add_subdirectory(plugins)
+ add_subdirectory(clientapp)
+endif()
+if(TARGET Qt::Quick AND UNIX AND NOT ANDROID)
+ add_subdirectory(qmlmodelviewclient)
+endif()
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}"
+)
diff --git a/examples/remoteobjects/cppclient/CMakeLists.txt b/examples/remoteobjects/cppclient/CMakeLists.txt
new file mode 100644
index 0000000..3bea6a8
--- /dev/null
+++ b/examples/remoteobjects/cppclient/CMakeLists.txt
@@ -0,0 +1,33 @@
+# Generated from cppclient.pro.
+
+cmake_minimum_required(VERSION 3.14)
+project(CppClient 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/cppclient")
+
+find_package(Qt6 COMPONENTS Core)
+find_package(Qt6 COMPONENTS RemoteObjects)
+
+add_executable(CppClient
+ main.cpp
+)
+target_link_libraries(CppClient PUBLIC
+ Qt::Core
+ Qt::RemoteObjects
+)
+
+qt6_add_repc_replica(CppClient
+ timemodel.rep
+)
+
+install(TARGETS CppClient
+ RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
+ BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
+)
diff --git a/examples/remoteobjects/modelviewclient/CMakeLists.txt b/examples/remoteobjects/modelviewclient/CMakeLists.txt
new file mode 100644
index 0000000..8b60772
--- /dev/null
+++ b/examples/remoteobjects/modelviewclient/CMakeLists.txt
@@ -0,0 +1,33 @@
+# Generated from modelviewclient.pro.
+
+cmake_minimum_required(VERSION 3.14)
+project(modelviewclient 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/modelviewclient")
+
+find_package(Qt6 COMPONENTS Core)
+find_package(Qt6 COMPONENTS Gui)
+find_package(Qt6 COMPONENTS Widgets)
+find_package(Qt6 COMPONENTS RemoteObjects)
+
+add_executable(modelviewclient
+ main.cpp
+)
+target_link_libraries(modelviewclient PUBLIC
+ Qt::Core
+ Qt::Gui
+ Qt::RemoteObjects
+ Qt::Widgets
+)
+
+install(TARGETS modelviewclient
+ RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
+ BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
+)
diff --git a/examples/remoteobjects/modelviewserver/CMakeLists.txt b/examples/remoteobjects/modelviewserver/CMakeLists.txt
new file mode 100644
index 0000000..dfdb56a
--- /dev/null
+++ b/examples/remoteobjects/modelviewserver/CMakeLists.txt
@@ -0,0 +1,33 @@
+# Generated from modelviewserver.pro.
+
+cmake_minimum_required(VERSION 3.14)
+project(modelviewserver 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/modelviewserver")
+
+find_package(Qt6 COMPONENTS Core)
+find_package(Qt6 COMPONENTS Gui)
+find_package(Qt6 COMPONENTS Widgets)
+find_package(Qt6 COMPONENTS RemoteObjects)
+
+add_qt_gui_executable(modelviewserver
+ main.cpp
+)
+target_link_libraries(modelviewserver PUBLIC
+ Qt::Core
+ Qt::Gui
+ Qt::RemoteObjects
+ Qt::Widgets
+)
+
+install(TARGETS modelviewserver
+ RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
+ BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
+)
diff --git a/examples/remoteobjects/plugins/CMakeLists.txt b/examples/remoteobjects/plugins/CMakeLists.txt
new file mode 100644
index 0000000..66cbd3d
--- /dev/null
+++ b/examples/remoteobjects/plugins/CMakeLists.txt
@@ -0,0 +1,44 @@
+# Generated from plugins.pro.
+
+cmake_minimum_required(VERSION 3.14)
+project(qmlqtimeexampleplugin 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/plugins/imports/TimeExample")
+
+find_package(Qt6 COMPONENTS Core)
+find_package(Qt6 COMPONENTS Gui)
+find_package(Qt6 COMPONENTS Qml)
+find_package(Qt6 COMPONENTS RemoteObjects)
+
+qt6_add_qml_module(qmlqtimeexampleplugin
+ OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/imports/TimeExample"
+ VERSION 1.0
+ URI "TimeExample"
+ INSTALL_LOCATION ${INSTALL_EXAMPLEDIR}
+)
+
+target_sources(qmlqtimeexampleplugin PRIVATE
+ plugin.cpp
+)
+target_link_libraries(qmlqtimeexampleplugin PUBLIC
+ Qt::Core
+ Qt::Gui
+ Qt::Qml
+ Qt::RemoteObjects
+)
+
+qt6_add_repc_replica(qmlqtimeexampleplugin
+ ../timemodel.rep
+)
+
+install(TARGETS qmlqtimeexampleplugin
+ RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
+ BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
+)
diff --git a/examples/remoteobjects/qmlmodelviewclient/CMakeLists.txt b/examples/remoteobjects/qmlmodelviewclient/CMakeLists.txt
new file mode 100644
index 0000000..9d77d54
--- /dev/null
+++ b/examples/remoteobjects/qmlmodelviewclient/CMakeLists.txt
@@ -0,0 +1,48 @@
+# Generated from qmlmodelviewclient.pro.
+
+cmake_minimum_required(VERSION 3.14)
+project(qmlmodelviewclient 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/qmlmodelviewclient")
+
+find_package(Qt6 COMPONENTS Core)
+find_package(Qt6 COMPONENTS Gui)
+find_package(Qt6 COMPONENTS Qml)
+find_package(Qt6 COMPONENTS Quick)
+find_package(Qt6 COMPONENTS RemoteObjects)
+
+add_qt_gui_executable(qmlmodelviewclient
+ main.cpp
+)
+target_link_libraries(qmlmodelviewclient PUBLIC
+ Qt::Core
+ Qt::Gui
+ Qt::Qml
+ Qt::Quick
+ Qt::RemoteObjects
+)
+
+
+# Resources:
+set(qml_resource_files
+ "main.qml"
+)
+
+qt6_add_resources(qmlmodelviewclient "qml"
+ PREFIX
+ "/"
+ FILES
+ ${qml_resource_files}
+)
+
+install(TARGETS qmlmodelviewclient
+ RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
+ BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
+)
diff --git a/examples/remoteobjects/server/CMakeLists.txt b/examples/remoteobjects/server/CMakeLists.txt
new file mode 100644
index 0000000..161d9df
--- /dev/null
+++ b/examples/remoteobjects/server/CMakeLists.txt
@@ -0,0 +1,34 @@
+# Generated from server.pro.
+
+cmake_minimum_required(VERSION 3.14)
+project(server 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/server")
+
+find_package(Qt6 COMPONENTS RemoteObjects)
+find_package(Qt6 COMPONENTS Core)
+
+add_executable(server
+ main.cpp
+ timemodel.cpp timemodel.h
+)
+target_link_libraries(server PUBLIC
+ Qt::Core
+ Qt::RemoteObjects
+)
+
+qt6_add_repc_source(server
+ ../timemodel.rep
+)
+
+install(TARGETS server
+ RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
+ BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
+)
diff --git a/examples/remoteobjects/simpleswitch/CMakeLists.txt b/examples/remoteobjects/simpleswitch/CMakeLists.txt
new file mode 100644
index 0000000..a357ec6
--- /dev/null
+++ b/examples/remoteobjects/simpleswitch/CMakeLists.txt
@@ -0,0 +1,7 @@
+# Generated from simpleswitch.pro.
+
+add_subdirectory(directconnectclient)
+add_subdirectory(directconnectdynamicclient)
+add_subdirectory(directconnectserver)
+add_subdirectory(registryconnectedclient)
+add_subdirectory(registryconnectedserver)
diff --git a/examples/remoteobjects/simpleswitch/directconnectclient/CMakeLists.txt b/examples/remoteobjects/simpleswitch/directconnectclient/CMakeLists.txt
new file mode 100644
index 0000000..641771e
--- /dev/null
+++ b/examples/remoteobjects/simpleswitch/directconnectclient/CMakeLists.txt
@@ -0,0 +1,34 @@
+# Generated from directconnectclient.pro.
+
+cmake_minimum_required(VERSION 3.14)
+project(directconnectclient 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/simpleswitch/directconnectclient")
+
+find_package(Qt6 COMPONENTS Core)
+find_package(Qt6 COMPONENTS RemoteObjects)
+
+add_executable(directconnectclient
+ client.cpp client.h
+ main.cpp
+)
+target_link_libraries(directconnectclient PUBLIC
+ Qt::Core
+ Qt::RemoteObjects
+)
+
+qt6_add_repc_replica(directconnectclient
+ simpleswitch.rep
+)
+
+install(TARGETS directconnectclient
+ RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
+ BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
+)
diff --git a/examples/remoteobjects/simpleswitch/directconnectdynamicclient/CMakeLists.txt b/examples/remoteobjects/simpleswitch/directconnectdynamicclient/CMakeLists.txt
new file mode 100644
index 0000000..03cebca
--- /dev/null
+++ b/examples/remoteobjects/simpleswitch/directconnectdynamicclient/CMakeLists.txt
@@ -0,0 +1,30 @@
+# Generated from directconnectdynamicclient.pro.
+
+cmake_minimum_required(VERSION 3.14)
+project(directconnectdynamicclient 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/simpleswitch/directconnectdynamicclient")
+
+find_package(Qt6 COMPONENTS Core)
+find_package(Qt6 COMPONENTS RemoteObjects)
+
+add_executable(directconnectdynamicclient
+ dynamicclient.cpp dynamicclient.h
+ main.cpp
+)
+target_link_libraries(directconnectdynamicclient PUBLIC
+ Qt::Core
+ Qt::RemoteObjects
+)
+
+install(TARGETS directconnectdynamicclient
+ RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
+ BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
+)
diff --git a/examples/remoteobjects/simpleswitch/directconnectserver/CMakeLists.txt b/examples/remoteobjects/simpleswitch/directconnectserver/CMakeLists.txt
new file mode 100644
index 0000000..0eac9db
--- /dev/null
+++ b/examples/remoteobjects/simpleswitch/directconnectserver/CMakeLists.txt
@@ -0,0 +1,34 @@
+# Generated from directconnectserver.pro.
+
+cmake_minimum_required(VERSION 3.14)
+project(directconnectserver 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/simpleswitch/directconnectserver")
+
+find_package(Qt6 COMPONENTS Core)
+find_package(Qt6 COMPONENTS RemoteObjects)
+
+add_executable(directconnectserver
+ main.cpp
+ simpleswitch.cpp simpleswitch.h
+)
+target_link_libraries(directconnectserver PUBLIC
+ Qt::Core
+ Qt::RemoteObjects
+)
+
+qt6_add_repc_source(directconnectserver
+ simpleswitch.rep
+)
+
+install(TARGETS directconnectserver
+ RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
+ BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
+)
diff --git a/examples/remoteobjects/simpleswitch/registryconnectedclient/CMakeLists.txt b/examples/remoteobjects/simpleswitch/registryconnectedclient/CMakeLists.txt
new file mode 100644
index 0000000..6e96a88
--- /dev/null
+++ b/examples/remoteobjects/simpleswitch/registryconnectedclient/CMakeLists.txt
@@ -0,0 +1,30 @@
+# Generated from registryconnectedclient.pro.
+
+cmake_minimum_required(VERSION 3.14)
+project(registryconnectedclient 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/simpleswitch/registryconnectedclient")
+
+find_package(Qt6 COMPONENTS Core)
+find_package(Qt6 COMPONENTS RemoteObjects)
+
+add_executable(registryconnectedclient
+ dynamicclient.cpp dynamicclient.h
+ main.cpp
+)
+target_link_libraries(registryconnectedclient PUBLIC
+ Qt::Core
+ Qt::RemoteObjects
+)
+
+install(TARGETS registryconnectedclient
+ RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
+ BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
+)
diff --git a/examples/remoteobjects/simpleswitch/registryconnectedserver/CMakeLists.txt b/examples/remoteobjects/simpleswitch/registryconnectedserver/CMakeLists.txt
new file mode 100644
index 0000000..d944727
--- /dev/null
+++ b/examples/remoteobjects/simpleswitch/registryconnectedserver/CMakeLists.txt
@@ -0,0 +1,34 @@
+# Generated from registryconnectedserver.pro.
+
+cmake_minimum_required(VERSION 3.14)
+project(registryconnectedserver 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/simpleswitch/registryconnectedserver")
+
+find_package(Qt6 COMPONENTS Core)
+find_package(Qt6 COMPONENTS RemoteObjects)
+
+add_executable(registryconnectedserver
+ main.cpp
+ simpleswitch.cpp simpleswitch.h
+)
+target_link_libraries(registryconnectedserver PUBLIC
+ Qt::Core
+ Qt::RemoteObjects
+)
+
+qt6_add_repc_source(registryconnectedserver
+ simpleswitch.rep
+)
+
+install(TARGETS registryconnectedserver
+ RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
+ BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
+)
diff --git a/examples/remoteobjects/ssl/CMakeLists.txt b/examples/remoteobjects/ssl/CMakeLists.txt
new file mode 100644
index 0000000..b77074a
--- /dev/null
+++ b/examples/remoteobjects/ssl/CMakeLists.txt
@@ -0,0 +1,4 @@
+# Generated from ssl.pro.
+
+add_subdirectory(sslserver)
+add_subdirectory(sslcppclient)
diff --git a/examples/remoteobjects/ssl/sslcppclient/CMakeLists.txt b/examples/remoteobjects/ssl/sslcppclient/CMakeLists.txt
new file mode 100644
index 0000000..49e9d87
--- /dev/null
+++ b/examples/remoteobjects/ssl/sslcppclient/CMakeLists.txt
@@ -0,0 +1,80 @@
+# Generated from sslcppclient.pro.
+
+cmake_minimum_required(VERSION 3.14)
+project(SslCppClient 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/ssl/sslcppclient")
+
+find_package(Qt6 COMPONENTS RemoteObjects)
+find_package(Qt6 COMPONENTS Core)
+
+add_executable(SslCppClient
+ main.cpp
+)
+target_link_libraries(SslCppClient PRIVATE
+ Qt::RemoteObjectsPrivate
+)
+
+target_link_libraries(SslCppClient PUBLIC
+ # Remove: gui
+ Qt::Core
+ Qt::RemoteObjects
+)
+
+
+# Resources:
+set_source_files_properties("../sslserver/cert/client.crt"
+ PROPERTIES QT_RESOURCE_ALIAS "client.crt"
+)
+set_source_files_properties("../sslserver/cert/client.key"
+ PROPERTIES QT_RESOURCE_ALIAS "client.key"
+)
+set_source_files_properties("../sslserver/cert/rootCA.key"
+ PROPERTIES QT_RESOURCE_ALIAS "rootCA.key"
+)
+set_source_files_properties("../sslserver/cert/rootCA.pem"
+ PROPERTIES QT_RESOURCE_ALIAS "rootCA.pem"
+)
+set_source_files_properties("../sslserver/cert/rootCA.srl"
+ PROPERTIES QT_RESOURCE_ALIAS "rootCA.srl"
+)
+set_source_files_properties("../sslserver/cert/server.crt"
+ PROPERTIES QT_RESOURCE_ALIAS "server.crt"
+)
+set_source_files_properties("../sslserver/cert/server.key"
+ PROPERTIES QT_RESOURCE_ALIAS "server.key"
+)
+set(cert_resource_files
+ "client.crt"
+ "client.key"
+ "rootCA.key"
+ "rootCA.pem"
+ "rootCA.srl"
+ "server.crt"
+ "server.key"
+)
+
+qt6_add_resources(SslCppClient "cert"
+ PREFIX
+ "/sslcert"
+ BASE
+ "../sslserver/cert"
+ FILES
+ ${cert_resource_files}
+)
+
+qt6_add_repc_replica(SslCppClient
+ timemodel.rep
+)
+
+install(TARGETS SslCppClient
+ RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
+ BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
+)
diff --git a/examples/remoteobjects/ssl/sslserver/CMakeLists.txt b/examples/remoteobjects/ssl/sslserver/CMakeLists.txt
new file mode 100644
index 0000000..149bcf3
--- /dev/null
+++ b/examples/remoteobjects/ssl/sslserver/CMakeLists.txt
@@ -0,0 +1,60 @@
+# Generated from sslserver.pro.
+
+cmake_minimum_required(VERSION 3.14)
+project(sslserver 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/ssl/sslserver")
+
+find_package(Qt6 COMPONENTS RemoteObjects)
+find_package(Qt6 COMPONENTS Core)
+
+add_executable(sslserver
+ main.cpp
+ sslserver.cpp sslserver.h
+ timemodel.cpp timemodel.h
+)
+target_link_libraries(sslserver PRIVATE
+ Qt::RemoteObjectsPrivate
+)
+
+target_link_libraries(sslserver PUBLIC
+ Qt::Core
+ Qt::RemoteObjects
+)
+
+
+# Resources:
+set(cert_resource_files
+ "client.crt"
+ "client.key"
+ "rootCA.key"
+ "rootCA.pem"
+ "rootCA.srl"
+ "server.crt"
+ "server.key"
+)
+
+qt6_add_resources(sslserver "cert"
+ PREFIX
+ "/sslcert"
+ BASE
+ "cert"
+ FILES
+ ${cert_resource_files}
+)
+
+qt6_add_repc_source(sslserver
+ ../../timemodel.rep
+)
+
+install(TARGETS sslserver
+ RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
+ BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
+)
diff --git a/examples/remoteobjects/websockets/CMakeLists.txt b/examples/remoteobjects/websockets/CMakeLists.txt
new file mode 100644
index 0000000..fc1c5b1
--- /dev/null
+++ b/examples/remoteobjects/websockets/CMakeLists.txt
@@ -0,0 +1,6 @@
+# Generated from websockets.pro.
+
+if(TARGET Qt::WebSockets AND TARGET Qt::Widgets)
+ add_subdirectory(wsclient)
+ add_subdirectory(wsserver)
+endif()
diff --git a/examples/remoteobjects/websockets/wsclient/CMakeLists.txt b/examples/remoteobjects/websockets/wsclient/CMakeLists.txt
new file mode 100644
index 0000000..4deaed3
--- /dev/null
+++ b/examples/remoteobjects/websockets/wsclient/CMakeLists.txt
@@ -0,0 +1,82 @@
+# Generated from wsclient.pro.
+
+cmake_minimum_required(VERSION 3.14)
+project(wsclient 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/websockets/wsclient")
+
+find_package(Qt6 COMPONENTS Core)
+find_package(Qt6 COMPONENTS Gui)
+find_package(Qt6 COMPONENTS Widgets)
+find_package(Qt6 COMPONENTS RemoteObjects)
+find_package(Qt6 COMPONENTS WebSockets)
+
+add_executable(wsclient
+ ../common/websocketiodevice.cpp ../common/websocketiodevice.h
+ main.cpp
+)
+target_include_directories(wsclient PUBLIC
+ ../common
+)
+
+target_link_libraries(wsclient PUBLIC
+ Qt::Core
+ Qt::Gui
+ Qt::RemoteObjects
+ Qt::WebSockets
+ Qt::Widgets
+)
+
+
+# Resources:
+set_source_files_properties("../common/cert/client.crt"
+ PROPERTIES QT_RESOURCE_ALIAS "client.crt"
+)
+set_source_files_properties("../common/cert/client.key"
+ PROPERTIES QT_RESOURCE_ALIAS "client.key"
+)
+set_source_files_properties("../common/cert/rootCA.key"
+ PROPERTIES QT_RESOURCE_ALIAS "rootCA.key"
+)
+set_source_files_properties("../common/cert/rootCA.pem"
+ PROPERTIES QT_RESOURCE_ALIAS "rootCA.pem"
+)
+set_source_files_properties("../common/cert/rootCA.srl"
+ PROPERTIES QT_RESOURCE_ALIAS "rootCA.srl"
+)
+set_source_files_properties("../common/cert/server.crt"
+ PROPERTIES QT_RESOURCE_ALIAS "server.crt"
+)
+set_source_files_properties("../common/cert/server.key"
+ PROPERTIES QT_RESOURCE_ALIAS "server.key"
+)
+set(cert_resource_files
+ "client.crt"
+ "client.key"
+ "rootCA.key"
+ "rootCA.pem"
+ "rootCA.srl"
+ "server.crt"
+ "server.key"
+)
+
+qt6_add_resources(wsclient "cert"
+ PREFIX
+ "/sslcert"
+ BASE
+ "../common/cert"
+ FILES
+ ${cert_resource_files}
+)
+
+install(TARGETS wsclient
+ RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
+ BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
+)
diff --git a/examples/remoteobjects/websockets/wsserver/CMakeLists.txt b/examples/remoteobjects/websockets/wsserver/CMakeLists.txt
new file mode 100644
index 0000000..1ce18e2
--- /dev/null
+++ b/examples/remoteobjects/websockets/wsserver/CMakeLists.txt
@@ -0,0 +1,82 @@
+# Generated from wsserver.pro.
+
+cmake_minimum_required(VERSION 3.14)
+project(wsserver 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/websockets/wsserver")
+
+find_package(Qt6 COMPONENTS Core)
+find_package(Qt6 COMPONENTS Gui)
+find_package(Qt6 COMPONENTS Widgets)
+find_package(Qt6 COMPONENTS RemoteObjects)
+find_package(Qt6 COMPONENTS WebSockets)
+
+add_executable(wsserver
+ ../common/websocketiodevice.cpp ../common/websocketiodevice.h
+ main.cpp
+)
+target_include_directories(wsserver PUBLIC
+ ../common
+)
+
+target_link_libraries(wsserver PUBLIC
+ Qt::Core
+ Qt::Gui
+ Qt::RemoteObjects
+ Qt::WebSockets
+ Qt::Widgets
+)
+
+
+# Resources:
+set_source_files_properties("../common/cert/client.crt"
+ PROPERTIES QT_RESOURCE_ALIAS "client.crt"
+)
+set_source_files_properties("../common/cert/client.key"
+ PROPERTIES QT_RESOURCE_ALIAS "client.key"
+)
+set_source_files_properties("../common/cert/rootCA.key"
+ PROPERTIES QT_RESOURCE_ALIAS "rootCA.key"
+)
+set_source_files_properties("../common/cert/rootCA.pem"
+ PROPERTIES QT_RESOURCE_ALIAS "rootCA.pem"
+)
+set_source_files_properties("../common/cert/rootCA.srl"
+ PROPERTIES QT_RESOURCE_ALIAS "rootCA.srl"
+)
+set_source_files_properties("../common/cert/server.crt"
+ PROPERTIES QT_RESOURCE_ALIAS "server.crt"
+)
+set_source_files_properties("../common/cert/server.key"
+ PROPERTIES QT_RESOURCE_ALIAS "server.key"
+)
+set(cert_resource_files
+ "client.crt"
+ "client.key"
+ "rootCA.key"
+ "rootCA.pem"
+ "rootCA.srl"
+ "server.crt"
+ "server.key"
+)
+
+qt6_add_resources(wsserver "cert"
+ PREFIX
+ "/sslcert"
+ BASE
+ "../common/cert"
+ FILES
+ ${cert_resource_files}
+)
+
+install(TARGETS wsserver
+ RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
+ BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
+)