diff --git a/README.md b/README.md index e271e26..cffd282 100644 --- a/README.md +++ b/README.md @@ -44,6 +44,32 @@ Requires Python 3.10-3.14. The C++ library is the core implementation. Both Python and TypeScript bindings are built on top of it. +#### Using vcpkg + +Clone the repository and use the overlay port: + +```bash +git clone https://github.com/USTC-KnowledgeComputingLab/ds.git +vcpkg install ds --overlay-ports=./ds/ports +``` + +Add to your `vcpkg.json`: + +```json +{ + "dependencies": ["ds"] +} +``` + +In your CMakeLists.txt: + +```cmake +find_package(ds CONFIG REQUIRED) +target_link_libraries(your_target PRIVATE ds::ds) +``` + +#### Building from Source + ```bash git clone https://github.com/USTC-KnowledgeComputingLab/ds.git cd ds diff --git a/docs/getting-started/installation.md b/docs/getting-started/installation.md index 5549eb3..d6bb655 100644 --- a/docs/getting-started/installation.md +++ b/docs/getting-started/installation.md @@ -75,6 +75,30 @@ The C++ library is the core implementation. Both Python and TypeScript bindings - C++20 compatible compiler (GCC 10+, Clang 10+, MSVC 2019+) - CMake 3.30+ +### Using vcpkg + +Clone the repository and use the overlay port: + +```bash +git clone https://github.com/USTC-KnowledgeComputingLab/ds.git +vcpkg install ds --overlay-ports=./ds/ports +``` + +Add to your `vcpkg.json`: + +```json +{ + "dependencies": ["ds"] +} +``` + +In your CMakeLists.txt: + +```cmake +find_package(ds CONFIG REQUIRED) +target_link_libraries(your_target PRIVATE ds::ds) +``` + ### Building from Source ```bash