C

Qt Quick Ultralite charts Example

cmake_minimum_required (VERSION 3.17.3)

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

# Set FreeRTOS heap size to 3.0 MB (needed for chart graph)
# mimxrt1170-evk-freertos needs 7MB because of the 1280x720 display resolution
if (OS STREQUAL "FreeRTOS")
    if (QUL_PLATFORM_LOWERCASE STREQUAL "mimxrt1170-evk-freertos")
        add_compile_definitions(configTOTAL_HEAP_SIZE=7340032)
    else()
        add_compile_definitions(configTOTAL_HEAP_SIZE=3145728)
    endif()
endif()

qul_add_target(charts)
qul_target_qml_sources(charts
        charts.qml
        BarChart.qml
        StyledBarChart.qml
        )

target_link_libraries(charts Qul::QuickUltraliteCharts Qul::QuickUltraliteControlsStyleDefault)
app_target_setup_os(charts)
app_target_default_entrypoint(charts charts)