summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorAlexandru Croitor <alexandru.croitor@qt.io>2021-12-14 18:13:21 +0100
committerAlexandru Croitor <alexandru.croitor@qt.io>2021-12-15 11:07:04 +0100
commitb87c3573c48666ec1aba018422ab22284a6117b2 (patch)
tree535b4edeaf168956f41c5c57c7a92f378828b9b9 /examples
parentb6db42d80c521345b60fc117af435462bacfa664 (diff)
downloadqttools-b87c3573c48666ec1aba018422ab22284a6117b2.tar.gz
Switch examples to build as isolated sub-builds
Pick-to: 6.2 6.3 Task-number: QTBUG-90820 Change-Id: I5ad7541596d39cb089f9af03b8a194b968659910 Reviewed-by: Alexey Edelev <alexey.edelev@qt.io>
Diffstat (limited to 'examples')
-rw-r--r--examples/assistant/CMakeLists.txt4
-rw-r--r--examples/designer/CMakeLists.txt14
-rw-r--r--examples/help/CMakeLists.txt2
-rw-r--r--examples/linguist/CMakeLists.txt6
-rw-r--r--examples/uitools/CMakeLists.txt4
5 files changed, 15 insertions, 15 deletions
diff --git a/examples/assistant/CMakeLists.txt b/examples/assistant/CMakeLists.txt
index bed9e1c4f..f9064128d 100644
--- a/examples/assistant/CMakeLists.txt
+++ b/examples/assistant/CMakeLists.txt
@@ -1,4 +1,4 @@
# Generated from assistant.pro.
-add_subdirectory(simpletextviewer)
-add_subdirectory(remotecontrol)
+qt_internal_add_example(simpletextviewer)
+qt_internal_add_example(remotecontrol)
diff --git a/examples/designer/CMakeLists.txt b/examples/designer/CMakeLists.txt
index f5de4c52f..e41521d3c 100644
--- a/examples/designer/CMakeLists.txt
+++ b/examples/designer/CMakeLists.txt
@@ -6,14 +6,14 @@ qt_exclude_tool_directories_from_default_target(
taskmenuextension
)
-add_subdirectory(calculatorform)
+qt_internal_add_example(calculatorform)
if(QT_BUILD_SHARED_LIBS AND NOT solaris-cc_x_)
- add_subdirectory(calculatorbuilder)
- add_subdirectory(worldtimeclockbuilder)
+ qt_internal_add_example(calculatorbuilder)
+ qt_internal_add_example(worldtimeclockbuilder)
endif()
if(QT_BUILD_SHARED_LIBS)
- add_subdirectory(containerextension)
- add_subdirectory(customwidgetplugin)
- add_subdirectory(taskmenuextension)
- add_subdirectory(worldtimeclockplugin)
+ qt_internal_add_example(containerextension)
+ qt_internal_add_example(customwidgetplugin)
+ qt_internal_add_example(taskmenuextension)
+ qt_internal_add_example(worldtimeclockplugin)
endif()
diff --git a/examples/help/CMakeLists.txt b/examples/help/CMakeLists.txt
index b61829db7..d6ed06162 100644
--- a/examples/help/CMakeLists.txt
+++ b/examples/help/CMakeLists.txt
@@ -1,3 +1,3 @@
# Generated from help.pro.
-add_subdirectory(contextsensitivehelp)
+qt_internal_add_example(contextsensitivehelp)
diff --git a/examples/linguist/CMakeLists.txt b/examples/linguist/CMakeLists.txt
index 612ae91cc..87865fb3a 100644
--- a/examples/linguist/CMakeLists.txt
+++ b/examples/linguist/CMakeLists.txt
@@ -1,5 +1,5 @@
# Generated from linguist.pro.
-add_subdirectory(arrowpad)
-add_subdirectory(hellotr)
-add_subdirectory(trollprint)
+qt_internal_add_example(arrowpad)
+qt_internal_add_example(hellotr)
+qt_internal_add_example(trollprint)
diff --git a/examples/uitools/CMakeLists.txt b/examples/uitools/CMakeLists.txt
index a31646da0..7e4d326c8 100644
--- a/examples/uitools/CMakeLists.txt
+++ b/examples/uitools/CMakeLists.txt
@@ -1,4 +1,4 @@
# Generated from uitools.pro.
-add_subdirectory(multipleinheritance)
-add_subdirectory(textfinder)
+qt_internal_add_example(multipleinheritance)
+qt_internal_add_example(textfinder)