summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandru Croitor <alexandru.croitor@qt.io>2021-12-14 17:56:59 +0100
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2021-12-15 12:40:32 +0000
commit410da09b9c096cf5a2dec6e64ee26114e251ecea (patch)
tree5df5758c5784006d8934dc8d5284b4ed3dbf7c75
parentf046f563a4c9e59006f9478408a9aef19631fc9a (diff)
downloadqtdoc-410da09b9c096cf5a2dec6e64ee26114e251ecea.tar.gz
Switch examples to build as isolated sub-builds
Task-number: QTBUG-90820 Change-Id: I3e7b6dfa84573f2ae07fe5be8540618d1a93f695 Reviewed-by: Alexey Edelev <alexey.edelev@qt.io> (cherry picked from commit 641005128ef33075156effab6c960cf10dc8a79d) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r--examples/demos/CMakeLists.txt22
1 files changed, 11 insertions, 11 deletions
diff --git a/examples/demos/CMakeLists.txt b/examples/demos/CMakeLists.txt
index 1893137d..f128061d 100644
--- a/examples/demos/CMakeLists.txt
+++ b/examples/demos/CMakeLists.txt
@@ -1,22 +1,22 @@
# Generated from demos.pro.
if(TARGET Qt::Quick)
- add_subdirectory(samegame)
- add_subdirectory(calqlatr)
- add_subdirectory(clocks)
- add_subdirectory(tweetsearch)
- add_subdirectory(maroon)
- add_subdirectory(photosurface)
- add_subdirectory(stocqt)
+ qt_internal_add_example(samegame)
+ qt_internal_add_example(calqlatr)
+ qt_internal_add_example(clocks)
+ qt_internal_add_example(tweetsearch)
+ qt_internal_add_example(maroon)
+ qt_internal_add_example(photosurface)
+ qt_internal_add_example(stocqt)
endif()
if(TARGET Qt::Quick AND TARGET Qt::QuickControls2)
- add_subdirectory(coffee)
+ qt_internal_add_example(coffee)
if(ANDROID OR IOS)
- add_subdirectory(hangman)
+ qt_internal_add_example(hangman)
endif()
endif()
if(TARGET Qt::Quick AND TARGET Qt::Network AND TARGET Qt::QmlXmlListModel)
- add_subdirectory(rssnews)
- add_subdirectory(photoviewer)
+ qt_internal_add_example(rssnews)
+ qt_internal_add_example(photoviewer)
endif()