refactor(CMakeLists): 使用 GLOB_RECURSE 简化源文件管理,创建符号链接以同步编译命令
This commit is contained in:
+3
-4
@@ -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
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user