M350b版本
This commit is contained in:
29
othersoft/co2correct/build.sh
Executable file
29
othersoft/co2correct/build.sh
Executable file
@ -0,0 +1,29 @@
|
||||
#!/bin/bash
|
||||
|
||||
# CO2传感器校准工具构建脚本
|
||||
|
||||
echo "开始构建CO2传感器校准工具..."
|
||||
|
||||
# 创建构建目录
|
||||
if [ ! -d "build" ]; then
|
||||
mkdir build
|
||||
fi
|
||||
|
||||
cd build
|
||||
|
||||
# 运行CMake配置
|
||||
echo "运行CMake配置..."
|
||||
cmake ..
|
||||
|
||||
# 编译
|
||||
echo "开始编译..."
|
||||
make
|
||||
|
||||
if [ $? -eq 0 ]; then
|
||||
echo "构建成功!"
|
||||
echo "可执行文件位置: $(pwd)/CO2Correct"
|
||||
else
|
||||
echo "构建失败!"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user