C

Qt Quick Ultralite loader Example

cmake_minimum_required (VERSION 3.21.1)

project(loader VERSION 0.0.1 LANGUAGES C CXX ASM)
if (NOT TARGET Qul::Core)
    find_package(Qul)
endif()

qul_add_target(loader QML_PROJECT mcu_loader.qmlproject GENERATE_ENTRYPOINT)

qul_get_module_target(gamestate_module loader memory_game/GameStateModule.qmlproject)
target_sources(${gamestate_module} PRIVATE memory_game/ColorsQueue.cpp)

app_target_setup_os(loader)

if(NOT CMAKE_CROSSCOMPILING AND NOT WIN32)
    add_custom_command(TARGET loader
        COMMAND strip loader -o loader.stripped
        DEPENDS loader)
endif()