summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexandru Croitor <alexandru.croitor@qt.io>2024-03-07 16:19:57 +0100
committerAlexandru Croitor <alexandru.croitor@qt.io>2024-03-07 18:19:10 +0100
commitae53b20f25381cf6c2fc0c1594185122c1fe3a2b (patch)
tree4409d503d649c949593c5b5f4c8c69f74f0f8998
parentffed724c3dbb67f3e7fba8c5d722acae6231017c (diff)
CMake: Use qt_internal_add_example for examples
All examples should be added via qt_internal_add_example instead of add_subdirectory, to support building examples as ExternalProjects as well as support example sources installation. Pick-to: 6.6 6.7 Task-number: QTBUG-90820 Task-number: QTBUG-123096 Change-Id: Ia307f57beeaf9e7b15605f3b53f39e7983afa144 Reviewed-by: Alexey Edelev <alexey.edelev@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
-rw-r--r--examples/applicationmanager/CMakeLists.txt28
1 files changed, 14 insertions, 14 deletions
diff --git a/examples/applicationmanager/CMakeLists.txt b/examples/applicationmanager/CMakeLists.txt
index 62178e6d..18be484d 100644
--- a/examples/applicationmanager/CMakeLists.txt
+++ b/examples/applicationmanager/CMakeLists.txt
@@ -1,19 +1,19 @@
-add_subdirectory(animated-windows)
-add_subdirectory(frame-timer)
-add_subdirectory(hello-world)
-add_subdirectory(launch-intents)
-add_subdirectory(minidesk)
-add_subdirectory(application-features)
-add_subdirectory(multi-views)
-add_subdirectory(process-status)
-add_subdirectory(startup-plugin)
-add_subdirectory(intents)
+qt_internal_add_example(animated-windows)
+qt_internal_add_example(frame-timer)
+qt_internal_add_example(hello-world)
+qt_internal_add_example(launch-intents)
+qt_internal_add_example(minidesk)
+qt_internal_add_example(application-features)
+qt_internal_add_example(multi-views)
+qt_internal_add_example(process-status)
+qt_internal_add_example(startup-plugin)
+qt_internal_add_example(intents)
if (QT_FEATURE_am_package_server)
- add_subdirectory(package-installation)
+ qt_internal_add_example(package-installation)
endif()
-add_subdirectory(custom-appman)
+qt_internal_add_example(custom-appman)
if(LINUX)
- add_subdirectory(softwarecontainer-plugin)
- add_subdirectory(bubblewrap-example)
+ qt_internal_add_example(softwarecontainer-plugin)
+ qt_internal_add_example(bubblewrap-example)
endif()