Revision control

+ # Copyright (C) 2026 The Qt Company Ltd.
+ # SPDX-License-Identifier: BSD-3-Clause
+
+ # QML unit tests for the QtMultimedia QML types, run against the mock media
+ # backend.
+
+ # QML files need also to be embedded into the test as TESTDATA
+ # for Android/iOS tests, since default QML QtTest will
+ # scan the root qrc for .qml files.
+ set(QML_SOURCE_FILES
+ tst_screencapture.qml
+ tst_windowcapture.qml)
+
+ qt_internal_multimedia_add_test(tst_multimediaquick_qml
+ QMLTEST
+ SOURCES
+ tst_multimediaquick_qml.cpp
+ ${QML_SOURCE_FILES}
+ TESTDATA
+ ${QML_SOURCE_FILES}
+ LIBRARIES
+ Qt::Core
+ Qt::Gui
+ Qt::MultimediaPrivate
+ Qt::MockMultimediaPlugin
+ Qt::Quick
+ Qt::QuickTest
+ )
+
+ if(TARGET quickmultimediaplugin)
+ add_dependencies(tst_multimediaquick_qml quickmultimediaplugin)
+ endif()