1
0
Fork 0

[CMake] Allow fallback for QtQuickCompiler.

This commit is contained in:
NamedKitten 2018-12-22 13:12:15 +00:00
parent c7894a40b0
commit 9207ca355d

View file

@ -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)