Commit dcd6e466 authored by Aleksei German's avatar Aleksei German
Browse files

WashingMachineUI: CMake file updated

parent 973aa689
......@@ -4,9 +4,15 @@ project(washingMachineUI VERSION 0.0.1 LANGUAGES C CXX ASM)
find_package(Qul)
add_executable(washingMachineUI)
if (Qul_VERSION VERSION_GREATER_EQUAL "1.7")
qul_add_target(washingMachineUI)
elseif (Qul_VERSION VERSION_EQUAL "1.6")
add_executable(washingMachineUI)
elseif (Qul_VERSION VERSION_LESS "1.6")
message(FATAL_ERROR "QUL versions below 1.6 are not supported in this project.")
endif()
set(QUL_FONTS_DIR "${CMAKE_CURRENT_SOURCE_DIR}/fonts,${QUL_FONTS_DIR}")
set_property(TARGET washingMachineUI APPEND PROPERTY QUL_FONTS_DIR "${CMAKE_CURRENT_SOURCE_DIR}/fonts")
file(GLOB_RECURSE imgSources "*.png")
if(imgSources)
......@@ -16,7 +22,17 @@ endif()
file(GLOB_RECURSE qmlSources "*.qml")
qul_target_qml_sources(washingMachineUI ${qmlSources})
target_link_libraries(washingMachineUI Qul::QuickUltralite Qul::QuickUltraliteTimeline Qul::QuickUltraliteControlsStyleDefault)
if(Qul_VERSION VERSION_GREATER_EQUAL "1.7")
target_link_libraries(washingMachineUI
Qul::QuickUltraliteTimeline
Qul::QuickUltraliteControlsStyleDefault)
else()
target_link_libraries(washingMachineUI
Qul::QuickUltralite
Qul::QuickUltralitePlatform
Qul::QuickUltraliteTimeline
Qul::QuickUltraliteControlsStyleDefault)
endif()
app_target_setup_os(washingMachineUI)
app_target_default_main(washingMachineUI washingMachineUI)
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