C

Qt Quick Ultralite painteditem Example

cmake_minimum_required(VERSION 3.17.3)

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

string(TOLOWER ${QUL_PLATFORM} PLATFORM_LOWERCASE)

qul_add_target(painteditem oscPaintedItem.cpp)

if (PLATFORM_LOWERCASE MATCHES "^rh850" OR PLATFORM_LOWERCASE MATCHES "^tvii")
  target_compile_definitions(painteditem PRIVATE NO_TOUCH)
endif()

qul_target_qml_sources(painteditem oscillator.qml)
qul_target_generate_interfaces(painteditem oscPaintedItem.h)

target_link_libraries(painteditem Qul::QuickUltraliteControlsStyleDefault)

app_target_setup_os(painteditem)

if (OS STREQUAL "FreeRTOS")
    app_target_default_entrypoint(painteditem oscillator)
else()
    target_sources(painteditem PRIVATE
                   main_baremetal.cpp
    )
endif()