C 语言

Qt Quick Ultralite traveo_t2g_effects 示例

cmake_minimum_required (VERSION 3.21.1)

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

qul_add_target(traveo_t2g_effects QML_PROJECT mcu_traveo_t2g_effects.qmlproject)
qul_get_module_target(speed_module traveo_t2g_effects traveo_t2g_effects_speed_module.qmlproject)
target_include_directories(${speed_module} PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/src)
target_sources(traveo_t2g_effects PRIVATE main.cpp)

if(QUL_PLATFORM MATCHES "^tviic2d")
    target_link_libraries(traveo_t2g_effects PRIVATE Qul::PlatformTraveoIIExtras)
else()
    message(FATAL_ERROR "traveo_t2g_effects example is only supported on Infineon TRAVEO™ T2G boards")
endif()

app_target_setup_os(traveo_t2g_effects)

add_subdirectory(effects)