C

Qt Quick Ultralite最简例子

cmake_minimum_required (VERSION 3.21.1)

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

qul_add_target(minimal QML_PROJECT mcu_minimal.qmlproject GENERATE_ENTRYPOINT)
app_target_setup_os(minimal)

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