refactor(CMakeLists): 使用 GLOB_RECURSE 简化源文件管理,创建符号链接以同步编译命令

This commit is contained in:
2026-05-06 18:01:15 +08:00
parent 9bbeb9d1f9
commit a7c6e51ba5
+3 -4
View File
@@ -20,12 +20,11 @@ if(SYSBUILD)
endif()
# NORDIC SDK APP START
file(GLOB_RECURSE app_sources src/*.c)
target_sources(app PRIVATE
src/main.c
src/ads1256.c
src/sensor.c
src/ble_transport.c
${app_sources}
)
target_include_directories(app PRIVATE
inc
)