mirror of
https://github.com/m5stack/CardputerZero-AppBuilder.git
synced 2026-05-20 11:51:57 -07:00
Three files (src/hello_cz.c + CMakeLists.txt + app-builder.json) exercise the full SDK: implement app_main/app_event, include sdk/cmake/CZApp.cmake, and declare runtime=lvgl-dlopen. Serves as the canonical template for new apps and the fixture for CI smoke. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
10 lines
317 B
CMake
10 lines
317 B
CMake
cmake_minimum_required(VERSION 3.16)
|
|
project(hello_cz C)
|
|
|
|
# Locate the AppBuilder SDK (two levels up from this example).
|
|
get_filename_component(_cz_root "${CMAKE_CURRENT_LIST_DIR}/../.." ABSOLUTE)
|
|
list(APPEND CMAKE_MODULE_PATH "${_cz_root}/sdk/cmake")
|
|
include(CZApp)
|
|
|
|
cz_add_lvgl_app(hello_cz SOURCES src/hello_cz.c)
|