aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlink2xt <link2xt@testrun.org>2021-08-01 14:23:15 +0300
committerlink2xt <link2xt@testrun.org>2021-08-01 14:23:15 +0300
commit4103ae47823671eaaf52d18b10cb6aaac0ea2d0d (patch)
tree1270fa2639e3d720cb3e210d5989d5846923a57b
parent3d7f9167db148083f270aa0c5abfc8cc2596397c (diff)
downloadkdeltachat-4103ae47823671eaaf52d18b10cb6aaac0ea2d0d.tar.gz
kdeltachat-4103ae47823671eaaf52d18b10cb6aaac0ea2d0d.zip
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.
-rw-r--r--CMakeLists.txt8
1 files 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