test_led_strip/CMakeLists.txt
zhangyisong 27ae21bbea Add UID management, LED strip debug, and MCUboot signing updates
- Add UID encoding/decoding with flash storage and CRC16 validation
- Add write UID (0x07) and LED strip color (0x08) protocol commands
- Add debug LED strip configuration option
- Switch MCUboot signing from RSA-2048 to ECDSA-P256
- Add SMP serial client for firmware upload over UART
- Add firmware version output on boot
- Update upgrade documentation with ECDSA key generation steps
2026-08-20 21:16:30 +08:00

32 lines
699 B
CMake

# SPDX-License-Identifier: Apache-2.0
cmake_minimum_required(VERSION 3.20.0)
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
project(app_photomagnetic)
target_include_directories(app PRIVATE include)
if(CONFIG_SAMPLE_HELLOWORLD)
message("CONFIG_SAMPLE_HELLOWORLD is enabled")
target_sources(app PRIVATE src/sample_hello_world.cpp)
elseif(CONFIG_SAMPLE_NTC)
message("CONFIG_SAMPLE_NTC is enabled")
target_sources(app PRIVATE src/sample_ntc.cpp)
else()
message("build main app")
target_sources(app PRIVATE
src/main.cpp
src/led.cpp
src/temp.cpp
src/watdog.cpp
src/com.cpp
src/uid.cpp
)
zephyr_sources_ifdef(CONFIG_APP_DFU
src/dfu.cpp
)
endif()