From f5b19bea0f17f169b6309fb0802c5c5aff68c0cf Mon Sep 17 00:00:00 2001 From: saipubw Date: Fri, 29 Nov 2024 15:46:19 +0800 Subject: [PATCH] Update README.md add support for vcpkg --- README.md | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index d4b0012bb..74ec575b0 100644 --- a/README.md +++ b/README.md @@ -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