summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexandru Croitor <alexandru.croitor@qt.io>2021-12-14 18:08:55 +0100
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2021-12-15 11:52:52 +0000
commit1cf3c8c0350a0d49efc0fd2830b03a1b17504acb (patch)
tree61e2b6f5c44f3c31c5db5ad65cb6e98fbfa3034a
parent2dd00d7802d51b93f0d28d17c321c54d2e8a5cc1 (diff)
Switch examples to build as isolated sub-builds
Task-number: QTBUG-90820 Change-Id: Idd7a5cc4829d21e710fc6e3f39d1c578600e9164 Reviewed-by: Alexey Edelev <alexey.edelev@qt.io> (cherry picked from commit 1b0aa9069542b26856fad94fe6553cc40aacf317) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r--examples/sensors/CMakeLists.txt18
1 files changed, 9 insertions, 9 deletions
diff --git a/examples/sensors/CMakeLists.txt b/examples/sensors/CMakeLists.txt
index 7fe6c4e9..6a71bfac 100644
--- a/examples/sensors/CMakeLists.txt
+++ b/examples/sensors/CMakeLists.txt
@@ -1,15 +1,15 @@
if(TARGET Qt::Quick)
- add_subdirectory(grue)
- add_subdirectory(maze)
-# add_subdirectory(qmlsensorgestures)
- add_subdirectory(qmlqtsensors)
- add_subdirectory(sensor_explorer)
-# add_subdirectory(shakeit)
+ qt_internal_add_example(grue)
+ qt_internal_add_example(maze)
+# qt_internal_add_example(qmlsensorgestures)
+ qt_internal_add_example(qmlqtsensors)
+ qt_internal_add_example(sensor_explorer)
+# qt_internal_add_example(shakeit)
if(TARGET Qt::Svg)
- add_subdirectory(accelbubble)
- add_subdirectory(sensorsshowcase)
+ qt_internal_add_example(accelbubble)
+ qt_internal_add_example(sensorsshowcase)
endif()
endif()
# if(TARGET Qt::Widgets)
-# add_subdirectory(sensorgestures)
+# qt_internal_add_example(sensorgestures)
# endif()