Files
Sakimi-UAV/CMakeLists.txt

40 lines
1.2 KiB
CMake
Raw Permalink 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
src/SubSystem/Initer/SubInit/storage/init_storage.c
src/SubSystem/Initer/SubInit/params/init_params.c
# tools
src/Tools/ui/status_led.c # LED UI
src/Tools/storage/sd_card.c # SD Card
src/Tools/params/params.c # params参数系统
)
target_include_directories(app PRIVATE
src
# Init
src/SubSystem/Initer
# tools
src/Tools/ui # LED UI
src/Tools/storage
src/Tools/params
)
# 自定义 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)