C

Qt Quick Ultralite timeline Example

cmake_minimum_required (VERSION 3.21.1)

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

qul_add_target(timeline)
qul_target_qml_sources(timeline timeline.qml)
target_link_libraries(timeline PRIVATE
    Qul::Timeline
)
app_target_setup_os(timeline)
app_target_default_entrypoint(timeline timeline)

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

if (QUL_BUILD_QMLPROJECT_EXAMPLES)
    qul_add_target(timeline_qmlproject QML_PROJECT mcu_timeline.qmlproject)
    app_target_setup_os(timeline_qmlproject)
    app_target_default_entrypoint(timeline_qmlproject timeline)

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