refactor: 添加构建、测试和清理脚本,优化CMakeLists.txt

This commit is contained in:
2025-07-08 17:16:02 +08:00
parent aecfbbb74a
commit 359c9f247a
2 changed files with 15 additions and 16 deletions

View File

@@ -3,4 +3,14 @@
.PHONY:format
format:
bash script/format.sh
bash script/format.sh
build:
cmake -S . -B build
cmake --build build
test: build
cd build && ctest
clean:
rm -rf build