Skip to content

Commit f5b19be

Browse files
authored
Update README.md
add support for vcpkg
1 parent e4a5d41 commit f5b19be

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

README.md

+11-2
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,18 @@ You can also use cmake option `-DENABLE_CPP_20=ON` or `-DENABLE_CPP_20=OFF` to c
4343

4444
## Install & Compile
4545

46-
Yalantinglibs is a head-only library. You can just copy `./include/ylt` directory into your project. But we suggest you use cmake to install it.
46+
### By Vcpkg
4747

48-
### Install
48+
1. Install [vcpkg](https://github.com/microsoft/vcpkg)
49+
2. run `./vcpkg install yalantinglibs`
50+
3. If you use cmake, add those codes:
51+
```cmake
52+
find_package(yalantinglibs CONFIG REQUIRED)
53+
target_link_libraries(main PRIVATE yalantinglibs::yalantinglibs)
54+
```
55+
### Manually Install
56+
57+
Yalantinglibs is a head-only library. You can just copy `./include/ylt` directory into your project. But we suggest you use cmake to install it.
4958

5059
1. clone repo
5160

0 commit comments

Comments
 (0)