mirror of
https://gitee.com/dlmu-cone/half-steering-basic-framework
synced 2026-10-23 17:42:20 +08:00
半舵旗舰版(功率控制有更改)
This commit is contained in:
@@ -53,7 +53,7 @@ function(include_sub_directories_recursively root_dir)
|
||||
include_directories(${root_dir})
|
||||
endif()
|
||||
|
||||
file(GLOB ALL_SUB RELATIVE ${root_dir} ${root_dir}/*) # 获得当前目录下的所有文件,让如ALL_SUB列表中
|
||||
file(GLOB ALL_SUB CONFIGURE_DEPENDS RELATIVE ${root_dir} ${root_dir}/*) # 获得当前目录下的所有文件,让如ALL_SUB列表中
|
||||
foreach(sub ${ALL_SUB})
|
||||
if (IS_DIRECTORY ${root_dir}/${sub})
|
||||
include_sub_directories_recursively(${root_dir}/${sub}) # 对子目录递归调用,包含
|
||||
@@ -68,7 +68,7 @@ include_sub_directories_recursively(${CMAKE_SOURCE_DIR}/application)
|
||||
include_sub_directories_recursively(${CMAKE_SOURCE_DIR}/Inc)
|
||||
|
||||
# add source, only surfix .c
|
||||
file(GLOB_RECURSE SOURCES
|
||||
file(GLOB_RECURSE SOURCES CONFIGURE_DEPENDS
|
||||
"Drivers/*.c"
|
||||
"Src/*.c"
|
||||
"Middlewares/*.c"
|
||||
@@ -112,4 +112,4 @@ add_custom_command(
|
||||
COMMENT "Building hex & bin file..."
|
||||
COMMENT "EXCUTABLE SIZE:"
|
||||
COMMAND ${SIZE} ${PROJECT_NAME}.elf
|
||||
)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user