diff --git a/README.md b/README.md index 285868ed..13024f06 100644 --- a/README.md +++ b/README.md @@ -24,16 +24,6 @@ NLopt is compiled and installed with the [CMake](https://cmake.org/) build syste (To build the latest development sources from git, you will need [SWIG](http://www.swig.org/) to generate the Python and Guile bindings.) -Alternatively, you can build and install NLopt using [vcpkg](https://github.com/Microsoft/vcpkg/) dependency manager: - - git clone https://github.com/Microsoft/vcpkg.git - cd vcpkg - ./bootstrap-vcpkg.sh - ./vcpkg integrate install - ./vcpkg install nlopt - -The NLopt 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. - Once it is installed, `#include ` in your C/C++ programs and link it with `-lnlopt -lm`. You may need to use a C++ compiler to link in order to include the C++ libraries (which are used internally by NLopt, diff --git a/doc/docs/NLopt_Installation.md b/doc/docs/NLopt_Installation.md index a638efa6..00926115 100644 --- a/doc/docs/NLopt_Installation.md +++ b/doc/docs/NLopt_Installation.md @@ -76,6 +76,19 @@ cmake -DBUILD_SHARED_LIBS=OFF .. Then you run `make` and `make` `install` as usual. +Vcpkg +------------------------- + +Alternatively, you can build and install NLopt using [vcpkg](https://github.com/Microsoft/vcpkg/) dependency manager: + + git clone https://github.com/Microsoft/vcpkg.git + cd vcpkg + ./bootstrap-vcpkg.sh + ./vcpkg integrate install + ./vcpkg install nlopt + +The NLopt 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. + Octave and Matlab plugins -------------------------