C

Qt Quick Ultralite painteditem Example

cmake_minimum_required(VERSION 3.15)

project(painteditem VERSION 0.0.1 LANGUAGES C CXX ASM)
if (NOT TARGET Qul::Core)
    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 PRIVATE Qul::Controls)

app_target_setup_os(painteditem)

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