mirror of
https://gitee.com/jiuyilian/embedded-framework.git
synced 2025-01-06 10:16:51 -05:00
Improve:TestTool build.
This commit is contained in:
parent
40b5a835f8
commit
e7659d197d
|
@ -84,4 +84,6 @@ endif()
|
|||
|
||||
define_file_name(${TARGET_NAME})
|
||||
|
||||
# add_subdirectory(tool)
|
||||
# if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/tool/CMakeLists.txt")
|
||||
# add_subdirectory(tool)
|
||||
# endif()
|
|
@ -1,2 +1,4 @@
|
|||
|
||||
add_subdirectory(tool)
|
||||
if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/tool/CMakeLists.txt")
|
||||
add_subdirectory(tool)
|
||||
endif()
|
|
@ -68,4 +68,6 @@ endif()
|
|||
|
||||
define_file_name(${TARGET_NAME})
|
||||
|
||||
add_subdirectory(tool)
|
||||
if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/tool/CMakeLists.txt")
|
||||
add_subdirectory(tool)
|
||||
endif()
|
|
@ -79,4 +79,6 @@ endif()
|
|||
|
||||
define_file_name(${TARGET_NAME})
|
||||
|
||||
add_subdirectory(tool)
|
||||
if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/tool/CMakeLists.txt")
|
||||
add_subdirectory(tool)
|
||||
endif()
|
|
@ -77,4 +77,6 @@ endif()
|
|||
|
||||
define_file_name(${TARGET_NAME})
|
||||
|
||||
add_subdirectory(tool)
|
||||
if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/tool/CMakeLists.txt")
|
||||
add_subdirectory(tool)
|
||||
endif()
|
|
@ -1,2 +1,4 @@
|
|||
|
||||
add_subdirectory(tool)
|
||||
if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/tool/CMakeLists.txt")
|
||||
add_subdirectory(tool)
|
||||
endif()
|
|
@ -87,4 +87,6 @@ add_custom_command(
|
|||
endif()
|
||||
define_file_name(${TARGET_NAME})
|
||||
|
||||
add_subdirectory(tool)
|
||||
if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/tool/CMakeLists.txt")
|
||||
add_subdirectory(tool)
|
||||
endif()
|
|
@ -78,4 +78,6 @@ endif()
|
|||
|
||||
define_file_name(${TARGET_NAME})
|
||||
|
||||
add_subdirectory(tool)
|
||||
if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/tool/CMakeLists.txt")
|
||||
add_subdirectory(tool)
|
||||
endif()
|
|
@ -1,2 +1,4 @@
|
|||
|
||||
add_subdirectory(tool)
|
||||
if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/tool/CMakeLists.txt")
|
||||
add_subdirectory(tool)
|
||||
endif()
|
|
@ -65,4 +65,6 @@ endif()
|
|||
|
||||
define_file_name(${TARGET_NAME})
|
||||
|
||||
# add_subdirectory(tool)
|
||||
# if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/tool/CMakeLists.txt")
|
||||
# add_subdirectory(tool)
|
||||
# endif()
|
|
@ -65,4 +65,6 @@ endif()
|
|||
|
||||
define_file_name(${TARGET_NAME})
|
||||
|
||||
add_subdirectory(tool)
|
||||
if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/tool/CMakeLists.txt")
|
||||
add_subdirectory(tool)
|
||||
endif()
|
|
@ -1,4 +1,13 @@
|
|||
# 1. 工具
|
||||
|
||||
## 1.1. 概述
|
||||
  该目录存放使用到的工具。
|
||||
  该目录存放使用到的工具。
|
||||
|
||||
## 1.2. delete_test_code.sh
|
||||
|
||||
  删除测试工具代码。
|
||||
|
||||
使用方法:
|
||||
```
|
||||
./delete_test_code.sh ../../test/
|
||||
```
|
|
@ -24,6 +24,17 @@ find "$1" -type d -name "tool" | while read -r tool_dir; do
|
|||
else
|
||||
echo "No 'src' directory found in '$tool_dir'"
|
||||
fi
|
||||
|
||||
# 检查CMakeLists.txt文件是否存在,然后删除
|
||||
cmake_file="$tool_dir/CMakeLists.txt"
|
||||
if [ -f "$cmake_file" ]; then
|
||||
rm "$cmake_file"
|
||||
if [ $? -eq 0 ]; then
|
||||
echo "Deleted 'CMakeLists.txt' in '$tool_dir'"
|
||||
else
|
||||
echo "Error deleting 'CMakeLists.txt' in '$tool_dir'"
|
||||
fi
|
||||
fi
|
||||
done
|
||||
|
||||
echo "Operation completed."
|
Loading…
Reference in New Issue
Block a user