From 4103ae47823671eaaf52d18b10cb6aaac0ea2d0d Mon Sep 17 00:00:00 2001 From: link2xt Date: Sun, 1 Aug 2021 14:23:15 +0300 Subject: CMakeLists: check for QML modules for QtMultimedia and Kirigami The whole Qt Multimedia module is not required. On Debian you only need qml-module-qtmultimedia and no qtmultimedia5-dev. --- CMakeLists.txt | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 78eec11..f0a84c4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -17,14 +17,18 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON) find_package( QT NAMES Qt6 Qt5 - COMPONENTS Core Widgets Quick WebEngine Multimedia + COMPONENTS Core Widgets Quick WebEngine REQUIRED) find_package( Qt${QT_VERSION_MAJOR} - COMPONENTS Core Widgets Quick WebEngine Multimedia + COMPONENTS Core Widgets Quick WebEngine REQUIRED) find_package(PkgConfig REQUIRED) +include(ECMQMLModules) +ecm_find_qmlmodule(QtMultimedia 5.8 REQUIRED) +ecm_find_qmlmodule(org.kde.kirigami 2.12 REQUIRED) + # Ahead-of-Time Compilation # # See https://doc.qt.io/qt-5/qtquick-deployment.html#ahead-of-time-compilation -- cgit v1.2.3-70-g09d2