Skip to content

Commit

Permalink
Update support for vcpkg
Browse files Browse the repository at this point in the history
  • Loading branch information
poor-circle authored Nov 29, 2024
1 parent f5b19be commit 9c5b69c
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion website/docs/zh/guide/what_is_yalantinglibs.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,18 @@ yaLanTingLibs 的目标: 为C++开发者提供高性能,极度易用的现代C

## 安装&编译

### 通过包管理器安装

1. 下载[vcpkg](https://github.com/microsoft/vcpkg)
2. 执行命令:`./vcpkg install yalantinglibs`
3. 如果你使用cmake,向脚本里添加如下内容:
```cmake
find_package(yalantinglibs CONFIG REQUIRED)
target_link_libraries(main PRIVATE yalantinglibs::yalantinglibs)
```

### 手动安装

Yalantinglibs 是一个head-only的库,这意味着你可以简单粗暴的直接将`./include/ylt`拷贝走。但是更推荐的做法还是用Cmake安装。

- 克隆仓库
Expand Down Expand Up @@ -477,4 +489,4 @@ struct_json、struct_xml、struct_yaml 由独立子仓库实现: [iguana](http

yaLanTingLibs 基于 Apache License (Version 2.0) 开发。
本产品包含了许多基于其他开源许可证的第三方组件。
你可以查看[NOTICE文件](https://github.com/alibaba/yalantinglibs/blob/main/NOTICE)来了解更多信息。
你可以查看[NOTICE文件](https://github.com/alibaba/yalantinglibs/blob/main/NOTICE)来了解更多信息。

0 comments on commit 9c5b69c

Please sign in to comment.