summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandru Croitor <alexandru.croitor@qt.io>2021-12-14 18:00:34 +0100
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2021-12-15 15:27:44 +0000
commitdebc5d179b84d00297d1fa5f01ce0eab13353e8a (patch)
tree8d82a9a54e47220442201d49ba1d2417f8bd4cb2
parent2fb34c011914e05f35c9aecf7015821c2f31be54 (diff)
downloadqtmultimedia-debc5d179b84d00297d1fa5f01ce0eab13353e8a.tar.gz
Switch examples to build as isolated sub-builds
Task-number: QTBUG-90820 Change-Id: I7b3fe87c4dc9b3ed71c97598d07c592c7e707db8 Reviewed-by: Alexey Edelev <alexey.edelev@qt.io> (cherry picked from commit 11d810823522c9d850e1db96c0027f7ba50e89d6) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r--examples/multimedia/CMakeLists.txt16
-rw-r--r--examples/multimedia/video/CMakeLists.txt6
-rw-r--r--examples/multimediawidgets/CMakeLists.txt8
3 files changed, 15 insertions, 15 deletions
diff --git a/examples/multimedia/CMakeLists.txt b/examples/multimedia/CMakeLists.txt
index 3ae1d06e9..40c83308e 100644
--- a/examples/multimedia/CMakeLists.txt
+++ b/examples/multimedia/CMakeLists.txt
@@ -1,19 +1,19 @@
# Generated from multimedia.pro.
-add_subdirectory(audiodecoder)
+qt_internal_add_example(audiodecoder)
if(NOT ANDROID AND NOT IOS)
- add_subdirectory(devices)
+ qt_internal_add_example(devices)
endif()
if(TARGET Qt::Widgets)
- add_subdirectory(spectrum)
- add_subdirectory(audiorecorder)
+ qt_internal_add_example(spectrum)
+ qt_internal_add_example(audiorecorder)
if(NOT ANDROID AND NOT IOS)
- add_subdirectory(audiodevices)
+ qt_internal_add_example(audiodevices)
endif()
- add_subdirectory(audiosource)
- add_subdirectory(audiooutput)
+ qt_internal_add_example(audiosource)
+ qt_internal_add_example(audiooutput)
endif()
if(TARGET Qt::Quick)
- add_subdirectory(declarative-camera)
+ qt_internal_add_example(declarative-camera)
add_subdirectory(video)
endif()
diff --git a/examples/multimedia/video/CMakeLists.txt b/examples/multimedia/video/CMakeLists.txt
index f8fc28144..ced1ad737 100644
--- a/examples/multimedia/video/CMakeLists.txt
+++ b/examples/multimedia/video/CMakeLists.txt
@@ -1,9 +1,9 @@
# Generated from video.pro.
-add_subdirectory(qmlvideo)
+qt_internal_add_example(qmlvideo)
if(TARGET Qt::QuickControls2)
if(TARGET Qt::Svg)
- add_subdirectory(mediaplayer)
+ qt_internal_add_example(mediaplayer)
endif()
- add_subdirectory(recorder)
+ qt_internal_add_example(recorder)
endif()
diff --git a/examples/multimediawidgets/CMakeLists.txt b/examples/multimediawidgets/CMakeLists.txt
index 64ee051d8..b7f0230cb 100644
--- a/examples/multimediawidgets/CMakeLists.txt
+++ b/examples/multimediawidgets/CMakeLists.txt
@@ -1,8 +1,8 @@
# Generated from multimediawidgets.pro.
if(TARGET Qt::Widgets)
- add_subdirectory(camera)
- add_subdirectory(videographicsitem)
- add_subdirectory(videowidget)
- add_subdirectory(player)
+ qt_internal_add_example(camera)
+ qt_internal_add_example(videographicsitem)
+ qt_internal_add_example(videowidget)
+ qt_internal_add_example(player)
endif()