C
Qt Quick Ultralite swipe_game Demo
cmake_minimum_required (VERSION 3.21.1)
project(swipe_game VERSION 0.0.1 LANGUAGES C CXX ASM)
if (NOT TARGET Qul::Core)
find_package(Qul)
endif()
qul_add_target(swipe_game
Globals.cpp
HighscoreModel.cpp
QML_PROJECT
mcu_swipe_game.qmlproject
GENERATE_ENTRYPOINT
)
if (QUL_OS STREQUAL "FreeRTOS" AND NOT QUL_PLATFORM MATCHES "^stm32f769i")
math(EXPR cache_size_in_bytes "1024 * 1024")
if (QUL_PLATFORM STREQUAL "mimxrt1170-evkb-freertos")
# NXP 1170 needs additional 2*3.6MB for the screen layer
qul_override_freertos_heap_size(swipe_game "8 * 1024 * 1024 + ${cache_size_in_bytes}")
else()
qul_override_freertos_heap_size(swipe_game "1024 * 1024 + ${cache_size_in_bytes}")
endif()
endif()
app_target_setup_os(swipe_game)