summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandru Croitor <alexandru.croitor@qt.io>2021-12-14 18:19:12 +0100
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2021-12-15 11:55:21 +0000
commit72bbef8b0eec3aff9d58ae83e2afef9ec0758fb7 (patch)
treea11debf007898b717b0331295d5bc74c8f02f547
parent9cff7738e177e65003a99a5780b160a49873f6d6 (diff)
downloadqtwebsockets-72bbef8b0eec3aff9d58ae83e2afef9ec0758fb7.tar.gz
Switch examples to build as isolated sub-builds
Task-number: QTBUG-90820 Change-Id: Iac4cb61d45a9ca0d19ebc1f43bf281cb2dc52f10 Reviewed-by: Alexey Edelev <alexey.edelev@qt.io> (cherry picked from commit 8b0d5814b500545e71a0698c52dc48f5201b67fa) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r--examples/websockets/CMakeLists.txt14
1 files changed, 7 insertions, 7 deletions
diff --git a/examples/websockets/CMakeLists.txt b/examples/websockets/CMakeLists.txt
index 196d6a1..c608f0b 100644
--- a/examples/websockets/CMakeLists.txt
+++ b/examples/websockets/CMakeLists.txt
@@ -1,13 +1,13 @@
# Generated from websockets.pro.
-add_subdirectory(echoclient)
-add_subdirectory(echoserver)
-add_subdirectory(simplechat)
+qt_internal_add_example(echoclient)
+qt_internal_add_example(echoserver)
+qt_internal_add_example(simplechat)
if(TARGET Qt::Quick)
- add_subdirectory(qmlwebsocketclient)
- add_subdirectory(qmlwebsocketserver)
+ qt_internal_add_example(qmlwebsocketclient)
+ qt_internal_add_example(qmlwebsocketserver)
endif()
if(QT_FEATURE_ssl)
- add_subdirectory(sslechoserver)
- add_subdirectory(sslechoclient)
+ qt_internal_add_example(sslechoserver)
+ qt_internal_add_example(sslechoclient)
endif()