Files
Sakimi-UAV/CMakeLists.txt
T
Misaki 40c593200c 1. 接入了Initer子系统,用于解决初始化依赖问题
2. 接入了led_ui,用于显示系统的实时状态
2026-10-27 20:42:27 +08:00

34 lines
889 B
CMake
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
cmake_minimum_required(VERSION 3.20.0)
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
project(Sakimi-UAV)
target_sources(app PRIVATE
src/main.cpp
# Init子系统 负责处理各种子系统的init以及init依赖拓扑
src/SubSystem/Initer/app_init.c
# Init子系统注册
src/SubSystem/Initer/SubInit/ui/init_ui.c
# LED UI
src/Tools/ui/status_led.c
)
target_include_directories(app PRIVATE
src
# Init
src/SubSystem/Initer
# LED UI
src/Tools/ui
)
# 自定义 iterable section(app_init_entry),供 APP_INIT 宏注册
zephyr_linker_sources(SECTIONS src/SubSystem/Initer/app_init.ld)
# The vendored MAVLink generated headers use packed structs; the resulting
# address-of-packed-member warnings are harmless.
target_compile_options(app PRIVATE -Wno-address-of-packed-member)