Add vcpkg installation instructions

This commit is contained in:
FrankXie 2022-08-23 00:02:42 -07:00
parent 4f72209510
commit 48cd25fa0c

View File

@ -25,6 +25,19 @@ functions and little extra.
Genann is self-contained in two files: `genann.c` and `genann.h`. To use Genann, simply add those two files to your project.
## Installing genann (vcpkg)
Alternatively, you can build and install genann using [vcpkg](https://github.com/Microsoft/vcpkg/) dependency manager:
```sh or powershell
git clone https://github.com/Microsoft/vcpkg.git
cd vcpkg
./bootstrap-vcpkg.sh # "./bootstrap-vcpkg.bat" for powershell
./vcpkg integrate install
./vcpkg install genann
```
The genann 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.
## Example Code
Four example programs are included with the source code.