From 9207ca355d697656e0341884e2c9c4e98aa93dd9 Mon Sep 17 00:00:00 2001 From: NamedKitten Date: Sat, 22 Dec 2018 13:12:15 +0000 Subject: [PATCH] [CMake] Allow fallback for QtQuickCompiler. --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index b0ba17b..58b299c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -14,7 +14,11 @@ find_package(Qt5Concurrent REQUIRED) find_package(Qt5 CONFIG REQUIRED COMPONENTS Qml Quick Gui Widgets Core X11Extras) find_package(Qt5QuickCompiler) +if(Qt5QuickCompiler_FOUND) qtquick_compiler_add_resources(qml_QRC src/qml/qml.qrc) +else() +qt5_add_resources(RESOURCES src/qml/qml.qrc) +endif() find_package(PkgConfig) pkg_check_modules(MPV REQUIRED mpv)