refactor(CMakeLists): 使用 GLOB_RECURSE 简化源文件管理,创建符号链接以同步编译命令
This commit is contained in:
+3
-4
@@ -20,12 +20,11 @@ if(SYSBUILD)
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
# NORDIC SDK APP START
|
# NORDIC SDK APP START
|
||||||
|
file(GLOB_RECURSE app_sources src/*.c)
|
||||||
target_sources(app PRIVATE
|
target_sources(app PRIVATE
|
||||||
src/main.c
|
${app_sources}
|
||||||
src/ads1256.c
|
|
||||||
src/sensor.c
|
|
||||||
src/ble_transport.c
|
|
||||||
)
|
)
|
||||||
|
|
||||||
target_include_directories(app PRIVATE
|
target_include_directories(app PRIVATE
|
||||||
inc
|
inc
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user