🗑️ 删除CMakeLists.txtvcpkg的支持

 新增`conan`包管理,并配置多平台`profile`

🔧 变更`CMakeLists`的设置
This commit is contained in:
csh
2025-11-17 17:41:43 +08:00
parent 41ef82b1aa
commit 99f735f2df
11 changed files with 289 additions and 308 deletions
+37
View File
@@ -0,0 +1,37 @@
[requires]
glaze/6.0.1
spdlog/1.16.0
fmt/12.0.0
taskflow/3.10.0
tree-sitter/0.25.9
[generators]
CMakeDeps
CMakeToolchain
[options]
spdlog/*:header_only=True
fmt/*:header_only=True
[layout]
cmake_layout
# Quick build (only test_ast):
# CONAN_HOME=/tmp/conan-home conan install . \
# -pr:h conan/profiles/linux-x86_64-gcc-15 \
# -pr:b conan/profiles/linux-x86_64-gcc-15 \
# -of build/arch-server --build=missing
# cmake -S . -B build/arch-server \
# -DCMAKE_TOOLCHAIN_FILE=$PWD/build/arch-server/Release/generators/conan_toolchain.cmake \
# -DBUILD_TESTS=ON
# cmake --build build/arch-server --target test_ast
# Cross build to Windows (MinGW from Linux):
# CONAN_HOME=/tmp/conan-home conan install . \
# -pr:h conan/profiles/windows-x86_64-gcc-15-cross \
# -pr:b conan/profiles/linux-x86_64-gcc-15 \
# -of build/win-cross --build=missing
# cmake -S . -B build/win-cross \
# -DCMAKE_TOOLCHAIN_FILE=$PWD/build/win-cross/Release/generators/conan_toolchain.cmake \
# -DBUILD_TESTS=ON
# cmake --build build/win-cross --target test_ast