C

Qt Quick Ultralite shapes Example

cmake_minimum_required (VERSION 3.15)

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

qul_add_target(shapes)

qul_target_qml_sources(shapes
    shapes.qml
    ShapesEntry.qml
    FillRules.qml
    JoinStyles.qml
    CapStyles.qml
    QuadraticCurve.qml
    CubicCurve.qml
    ArcDirection.qml
    LargeSmallArc.qml
    ArcRotation.qml
    )

target_link_libraries(shapes PRIVATE Qul::Shapes)
app_target_setup_os(shapes)
app_target_default_entrypoint(shapes shapes)

if (QUL_BUILD_QMLPROJECT_EXAMPLES)
    qul_add_target(shapes_qmlproject QML_PROJECT mcu_shapes.qmlproject)
    app_target_setup_os(shapes_qmlproject)
    app_target_default_entrypoint(shapes_qmlproject shapes)
endif()