summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexandru Croitor <alexandru.croitor@qt.io>2021-12-14 18:10:36 +0100
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2021-12-15 13:42:38 +0000
commit19c03aa39a5d4861304944ceab8844398cf5d97a (patch)
treee573ab8e409ddad26e4ffcbbc404766a02c70261
parent9458fe5f552ad43bde7b7eed3e8f9d96c0b9ac2f (diff)
Switch examples to build as isolated sub-builds
Task-number: QTBUG-90820 Change-Id: Ie95b2215f84b705502570ba29c3f1a728beb7ce4 Reviewed-by: Alexey Edelev <alexey.edelev@qt.io> (cherry picked from commit 3d4c5c7d6a3c3dfb35d0efbef29f02ea241580a2) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r--examples/serialport/CMakeLists.txt22
1 files changed, 11 insertions, 11 deletions
diff --git a/examples/serialport/CMakeLists.txt b/examples/serialport/CMakeLists.txt
index 8b903fa0..2a850aa0 100644
--- a/examples/serialport/CMakeLists.txt
+++ b/examples/serialport/CMakeLists.txt
@@ -1,13 +1,13 @@
-add_subdirectory(cenumerator)
-add_subdirectory(creaderasync)
-add_subdirectory(creadersync)
-add_subdirectory(cwriterasync)
-add_subdirectory(cwritersync)
+qt_internal_add_example(cenumerator)
+qt_internal_add_example(creaderasync)
+qt_internal_add_example(creadersync)
+qt_internal_add_example(cwriterasync)
+qt_internal_add_example(cwritersync)
if((((NOT QT.widgets.name_ISEMPTY))))
- add_subdirectory(enumerator)
- add_subdirectory(terminal)
- add_subdirectory(blockingsender)
- add_subdirectory(blockingreceiver)
- add_subdirectory(sender)
- add_subdirectory(receiver)
+ qt_internal_add_example(enumerator)
+ qt_internal_add_example(terminal)
+ qt_internal_add_example(blockingsender)
+ qt_internal_add_example(blockingreceiver)
+ qt_internal_add_example(sender)
+ qt_internal_add_example(receiver)
endif()