summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorAlexandru Croitor <alexandru.croitor@qt.io>2021-06-08 10:42:04 +0200
committerAlexandru Croitor <alexandru.croitor@qt.io>2021-06-15 10:07:44 +0200
commit80f90c3d9b893d384c6503cebac334a77c3c460f (patch)
tree50ab7d4f8e09df1a447c269013b7873c30287094 /examples
parent2ad504e0be9654b2b9b5bd96068deb16210f80b6 (diff)
downloadqtsvg-80f90c3d9b893d384c6503cebac334a77c3c460f.tar.gz
CMake: Switch examples to build as isolated sub-builds
Task-number: QTBUG-90820 Change-Id: I6888ccc98330588218c909f2e208e000a0441651 Reviewed-by: Craig Scott <craig.scott@qt.io> Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
Diffstat (limited to 'examples')
-rw-r--r--examples/CMakeLists.txt2
-rw-r--r--examples/svg/CMakeLists.txt6
-rw-r--r--examples/svg/draganddrop/CMakeLists.txt2
-rw-r--r--examples/svg/embedded/CMakeLists.txt6
-rw-r--r--examples/svg/richtext/CMakeLists.txt2
5 files changed, 9 insertions, 9 deletions
diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt
index eb44013..a2cd1d5 100644
--- a/examples/CMakeLists.txt
+++ b/examples/CMakeLists.txt
@@ -1,6 +1,6 @@
# Generated from examples.pro.
-qt_examples_build_begin()
+qt_examples_build_begin(EXTERNAL_BUILD)
add_subdirectory(svg)
diff --git a/examples/svg/CMakeLists.txt b/examples/svg/CMakeLists.txt
index 16c34c2..df76409 100644
--- a/examples/svg/CMakeLists.txt
+++ b/examples/svg/CMakeLists.txt
@@ -4,7 +4,7 @@ add_subdirectory(embedded)
add_subdirectory(richtext)
add_subdirectory(draganddrop)
if(TARGET Qt::Widgets)
- add_subdirectory(embeddedsvgviewer)
- add_subdirectory(svggenerator)
- add_subdirectory(svgviewer)
+ qt_internal_add_example(embeddedsvgviewer)
+ qt_internal_add_example(svggenerator)
+ qt_internal_add_example(svgviewer)
endif()
diff --git a/examples/svg/draganddrop/CMakeLists.txt b/examples/svg/draganddrop/CMakeLists.txt
index 64c9482..5cb8b4d 100644
--- a/examples/svg/draganddrop/CMakeLists.txt
+++ b/examples/svg/draganddrop/CMakeLists.txt
@@ -1,5 +1,5 @@
# Generated from draganddrop.pro.
if(TARGET Qt::Widgets)
- add_subdirectory(delayedencoding)
+ qt_internal_add_example(delayedencoding)
endif()
diff --git a/examples/svg/embedded/CMakeLists.txt b/examples/svg/embedded/CMakeLists.txt
index adf7001..c52cbe2 100644
--- a/examples/svg/embedded/CMakeLists.txt
+++ b/examples/svg/embedded/CMakeLists.txt
@@ -1,11 +1,11 @@
# Generated from embedded.pro.
if(TARGET Qt::Widgets)
- add_subdirectory(desktopservices)
+ qt_internal_add_example(desktopservices)
endif()
if(QT_FEATURE_process AND TARGET Qt::Widgets)
- add_subdirectory(fluidlauncher)
+ qt_internal_add_example(fluidlauncher)
endif()
if(TARGET Qt::Network AND TARGET Qt::Widgets)
- add_subdirectory(weatherinfo)
+ qt_internal_add_example(weatherinfo)
endif()
diff --git a/examples/svg/richtext/CMakeLists.txt b/examples/svg/richtext/CMakeLists.txt
index 74d04ce..3495b91 100644
--- a/examples/svg/richtext/CMakeLists.txt
+++ b/examples/svg/richtext/CMakeLists.txt
@@ -1,5 +1,5 @@
# Generated from richtext.pro.
if(TARGET Qt::Widgets)
- add_subdirectory(textobject)
+ qt_internal_add_example(textobject)
endif()