diff options
author | Alexandru Croitor <[email protected]> | 2021-12-14 17:43:57 +0100 |
---|---|---|
committer | Alexandru Croitor <[email protected]> | 2021-12-16 18:28:29 +0100 |
commit | 2f45a9c2b9f3a136f6933b6faa8e223a634b28a6 (patch) | |
tree | e4a51a7e7499f45fe55fce7327686f9983064de9 | |
parent | 8c5fdcd4b98a3d1a9af01e6a7393c3267be47c72 (diff) |
Switch examples to build as isolated sub-builds
Pick-to: 6.2 6.3
Task-number: QTBUG-90820
Change-Id: I7fab73f63a22901ab2d4d4e57b5a25b433100de5
Reviewed-by: Alexey Edelev <[email protected]>
-rw-r--r-- | examples/qml/CMakeLists.txt | 2 | ||||
-rw-r--r-- | examples/quick/CMakeLists.txt | 2 | ||||
-rw-r--r-- | examples/quick/tutorials/dynamicview/CMakeLists.txt | 8 | ||||
-rw-r--r-- | examples/quick/tutorials/samegame/CMakeLists.txt | 8 | ||||
-rw-r--r-- | examples/quickcontrols2/CMakeLists.txt | 20 | ||||
-rw-r--r-- | examples/quickcontrols2/chattutorial/CMakeLists.txt | 10 |
6 files changed, 25 insertions, 25 deletions
diff --git a/examples/qml/CMakeLists.txt b/examples/qml/CMakeLists.txt index 9f32c37621..7f84d6e257 100644 --- a/examples/qml/CMakeLists.txt +++ b/examples/qml/CMakeLists.txt @@ -1,6 +1,6 @@ # Generated from qml.pro. -add_subdirectory(dynamicscene) +qt_internal_add_example(dynamicscene) add_subdirectory(referenceexamples) add_subdirectory(tutorials) qt_internal_add_example(shell) diff --git a/examples/quick/CMakeLists.txt b/examples/quick/CMakeLists.txt index 463933de01..e138f7039a 100644 --- a/examples/quick/CMakeLists.txt +++ b/examples/quick/CMakeLists.txt @@ -8,7 +8,7 @@ qt_internal_add_example(canvas) qt_internal_add_example(imageelements) qt_internal_add_example(keyinteraction) qt_internal_add_example(layouts) -add_subdirectory(localstorage) +qt_internal_add_example(localstorage) add_subdirectory(models) qt_internal_add_example(views) add_subdirectory(tableview) diff --git a/examples/quick/tutorials/dynamicview/CMakeLists.txt b/examples/quick/tutorials/dynamicview/CMakeLists.txt index 815b9f5a74..38f8e7907b 100644 --- a/examples/quick/tutorials/dynamicview/CMakeLists.txt +++ b/examples/quick/tutorials/dynamicview/CMakeLists.txt @@ -1,4 +1,4 @@ -add_subdirectory(dynamicview1) -add_subdirectory(dynamicview2) -add_subdirectory(dynamicview3) -add_subdirectory(dynamicview4) +qt_internal_add_example(dynamicview1) +qt_internal_add_example(dynamicview2) +qt_internal_add_example(dynamicview3) +qt_internal_add_example(dynamicview4) diff --git a/examples/quick/tutorials/samegame/CMakeLists.txt b/examples/quick/tutorials/samegame/CMakeLists.txt index e0d5157a2c..df1a825651 100644 --- a/examples/quick/tutorials/samegame/CMakeLists.txt +++ b/examples/quick/tutorials/samegame/CMakeLists.txt @@ -1,4 +1,4 @@ -add_subdirectory(samegame1) -add_subdirectory(samegame2) -add_subdirectory(samegame3) -add_subdirectory(samegame4) +qt_internal_add_example(samegame1) +qt_internal_add_example(samegame2) +qt_internal_add_example(samegame3) +qt_internal_add_example(samegame4) diff --git a/examples/quickcontrols2/CMakeLists.txt b/examples/quickcontrols2/CMakeLists.txt index 1f760a1bb2..81ace6b760 100644 --- a/examples/quickcontrols2/CMakeLists.txt +++ b/examples/quickcontrols2/CMakeLists.txt @@ -1,17 +1,17 @@ # Generated from quickcontrols2.pro. -add_subdirectory(gallery) +qt_internal_add_example(gallery) add_subdirectory(chattutorial) if (QT_FEATURE_quicktemplates2_calendar AND TARGET Qt::Sql) - add_subdirectory(eventcalendar) + qt_internal_add_example(eventcalendar) endif() -add_subdirectory(texteditor) -add_subdirectory(contactlist) -add_subdirectory(sidepanel) -add_subdirectory(swipetoremove) -add_subdirectory(wearable) -add_subdirectory(imagine/automotive) -add_subdirectory(imagine/musicplayer) +qt_internal_add_example(texteditor) +qt_internal_add_example(contactlist) +qt_internal_add_example(sidepanel) +qt_internal_add_example(swipetoremove) +qt_internal_add_example(wearable) +qt_internal_add_example(imagine/automotive) +qt_internal_add_example(imagine/musicplayer) if(TARGET Qt::Widgets) - add_subdirectory(flatstyle) + qt_internal_add_example(flatstyle) endif() diff --git a/examples/quickcontrols2/chattutorial/CMakeLists.txt b/examples/quickcontrols2/chattutorial/CMakeLists.txt index 22546aabec..88f9cb5cf2 100644 --- a/examples/quickcontrols2/chattutorial/CMakeLists.txt +++ b/examples/quickcontrols2/chattutorial/CMakeLists.txt @@ -1,10 +1,10 @@ # Generated from chattutorial.pro. -add_subdirectory(chapter1) -add_subdirectory(chapter2) -add_subdirectory(chapter3) +qt_internal_add_example(chapter1) +qt_internal_add_example(chapter2) +qt_internal_add_example(chapter3) if (TARGET Qt::Sql) - add_subdirectory(chapter4) - add_subdirectory(chapter5) + qt_internal_add_example(chapter4) + qt_internal_add_example(chapter5) endif() |