Commit 6dabe50b authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Use qtquick_compiler when it's possible

parent eac405b9
......@@ -40,6 +40,9 @@ find_package(Qt5 ${QT_MIN_VERSION} CONFIG REQUIRED COMPONENTS
Svg
)
find_package(Qt5 CONFIG QUIET OPTIONAL_COMPONENTS QuickCompiler)
IF(NOT ${CMAKE_SYSTEM_NAME} MATCHES "Android")
find_package(KF5 ${KF5_MIN_VERSION} REQUIRED COMPONENTS
CoreAddons
......
......@@ -6,7 +6,11 @@ set(minuet_SRCS
exercisecontroller.cpp
)
qt5_add_resources(minuet_SRCS qml.qrc)
if (Qt5QuickCompiler_FOUND)
qtquick_compiler_add_resources(minuet_qml_SRCS qml.qrc)
else ()
qt5_add_resources(minuet_qml_SRCS qml.qrc)
endif()
IF(NOT ${CMAKE_SYSTEM_NAME} MATCHES "Android")
set(minuet_ICONS_PNG
......@@ -40,7 +44,7 @@ IF(NOT ${CMAKE_SYSTEM_NAME} MATCHES "Android")
ecm_install_icons(ICONS ${minuet_ICONS_PNG} ${minuet_ICONS_SVG} DESTINATION ${ICON_INSTALL_DIR} THEME hicolor)
ENDIF(NOT ${CMAKE_SYSTEM_NAME} MATCHES "Android")
add_executable(minuet ${minuet_SRCS})
add_executable(minuet ${minuet_SRCS} ${minuet_qml_SRCS})
target_link_libraries(minuet
Qt5::Core
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment