Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
add support for vcpkg
  • Loading branch information
poor-circle authored Nov 29, 2024
1 parent e4a5d41 commit f5b19be
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,18 @@ You can also use cmake option `-DENABLE_CPP_20=ON` or `-DENABLE_CPP_20=OFF` to c

## Install & Compile

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.
### By Vcpkg

### Install
1. Install [vcpkg](https://github.com/microsoft/vcpkg)
2. run `./vcpkg install yalantinglibs`
3. If you use cmake, add those codes:
```cmake
find_package(yalantinglibs CONFIG REQUIRED)
target_link_libraries(main PRIVATE yalantinglibs::yalantinglibs)
```
### Manually Install

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.

1. clone repo

Expand Down

0 comments on commit f5b19be

Please sign in to comment.