summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexandru Croitor <alexandru.croitor@qt.io>2021-12-14 18:18:18 +0100
committerAlexandru Croitor <alexandru.croitor@qt.io>2021-12-15 13:42:29 +0100
commit6ae50c192f06110a9cecdeb3e20b27e27dc0af70 (patch)
treee87f17cfe245210ff63a28b84e38eaf3679a91d1
parenta023d7cdd588b39bee748af01404f9d9aa3e9f15 (diff)
Switch examples to build as isolated sub-builds
Task-number: QTBUG-90820 Change-Id: I4906db476df58ba248f415ef150551a88b942379 Reviewed-by: Alexey Edelev <alexey.edelev@qt.io> (cherry picked from commit c255039924bf1a10716b83deaf2757752d0cae0b)
-rw-r--r--examples/wayland/CMakeLists.txt20
-rw-r--r--examples/wayland/custom-extension/CMakeLists.txt6
-rw-r--r--examples/wayland/server-buffer/CMakeLists.txt4
3 files changed, 15 insertions, 15 deletions
diff --git a/examples/wayland/CMakeLists.txt b/examples/wayland/CMakeLists.txt
index 78132bb17..1c8773481 100644
--- a/examples/wayland/CMakeLists.txt
+++ b/examples/wayland/CMakeLists.txt
@@ -2,18 +2,18 @@
if(QT_FEATURE_wayland_server) # special case
if(QT_FEATURE_opengl)
- add_subdirectory(minimal-cpp)
+ qt_internal_add_example(minimal-cpp)
endif()
if(TARGET Qt::Quick)
- add_subdirectory(minimal-qml)
- add_subdirectory(spanning-screens)
- add_subdirectory(pure-qml)
- add_subdirectory(multi-output)
- add_subdirectory(multi-screen)
- add_subdirectory(overview-compositor)
- add_subdirectory(ivi-compositor)
- add_subdirectory(server-side-decoration)
- add_subdirectory(hwlayer-compositor)
+ qt_internal_add_example(minimal-qml)
+ qt_internal_add_example(spanning-screens)
+ qt_internal_add_example(pure-qml)
+ qt_internal_add_example(multi-output)
+ qt_internal_add_example(multi-screen)
+ qt_internal_add_example(overview-compositor)
+ qt_internal_add_example(ivi-compositor)
+ qt_internal_add_example(server-side-decoration)
+ qt_internal_add_example(hwlayer-compositor)
endif()
if(TARGET Qt::Quick AND TARGET Qt::WaylandClient)
add_subdirectory(custom-extension)
diff --git a/examples/wayland/custom-extension/CMakeLists.txt b/examples/wayland/custom-extension/CMakeLists.txt
index 408a9174e..bdf9e1245 100644
--- a/examples/wayland/custom-extension/CMakeLists.txt
+++ b/examples/wayland/custom-extension/CMakeLists.txt
@@ -1,5 +1,5 @@
# Generated from custom-extension.pro.
-add_subdirectory(qml-client)
-add_subdirectory(compositor)
-add_subdirectory(cpp-client)
+qt_internal_add_example(qml-client)
+qt_internal_add_example(compositor)
+qt_internal_add_example(cpp-client)
diff --git a/examples/wayland/server-buffer/CMakeLists.txt b/examples/wayland/server-buffer/CMakeLists.txt
index ad4115116..751ebc0f1 100644
--- a/examples/wayland/server-buffer/CMakeLists.txt
+++ b/examples/wayland/server-buffer/CMakeLists.txt
@@ -1,4 +1,4 @@
# Generated from server-buffer.pro.
-add_subdirectory(cpp-client)
-add_subdirectory(compositor)
+qt_internal_add_example(cpp-client)
+qt_internal_add_example(compositor)