From 0ea03bbda18f073a8600504bac9d3a6cf8523e62 Mon Sep 17 00:00:00 2001 From: FrankXie Date: Thu, 25 Aug 2022 19:04:28 -0700 Subject: [PATCH] Add vcpkg installation instructions --- README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/README.md b/README.md index 011e051..dfef2dd 100644 --- a/README.md +++ b/README.md @@ -17,6 +17,18 @@ and copy parson.h and parson.c to you source code tree. Run ```make test``` to compile and run tests. +Alternatively, you can build and install parson using [vcpkg](https://github.com/Microsoft/vcpkg/) dependency manager: + +``` +git clone https://github.com/Microsoft/vcpkg.git +cd vcpkg +./bootstrap-vcpkg.sh # "./bootstrap-vcpkg.bat" for powershell +./vcpkg integrate install +./vcpkg install parson +``` + +The parson port in vcpkg is kept up to date by Microsoft team members and community contributors. If the version is out of date, please [create an issue or pull request](https://github.com/Microsoft/vcpkg) on the vcpkg repository. + ## Examples ### Parsing JSON Here is a function, which prints basic commit info (date, sha and author) from a github repository.