cmake_minimum_required (VERSION 3.21.1)

project(thermo VERSION 0.0.1 LANGUAGES C CXX ASM)

if (NOT TARGET Qul::Core)
    find_package(Qul)
endif()

if (Qul_VERSION LESS "2.4")
    message(WARNING "The current Qt for MCUs version is '${Qul_VERSION}'."
                    "This CMake project was made for Qt for MCUs 2.4 and newer, "
                    "and might not work as expected.")
endif()

qul_add_target(thermo_small
                QML_PROJECT thermo.qmlproject
                GENERATE_ENTRYPOINT
                SELECTORS metric)

qul_add_target(thermo_big
                QML_PROJECT thermo.qmlproject
                GENERATE_ENTRYPOINT
                SELECTORS metric big)

app_target_setup_os(thermo)
