diff --git a/README.md b/README.md index 73c4ff34..3aa98b21 100644 --- a/README.md +++ b/README.md @@ -182,7 +182,7 @@ details are available at [installation][]: - All-in-one global header: Like above, but copying the file to a shared folder location like `/opt/CLI11`. Then, the C++ include path has to be extended to point at this folder. With CMake 3.5+, use `include_directories(/opt/CLI11)` -- For other methods including using CMake or vcpkg and some specific +- For other methods including using CMake, conan or vcpkg and some specific instructions for GCC 8 or WASI see [installation][]. ## Usage diff --git a/book/chapters/installation.md b/book/chapters/installation.md index 467638a0..5ac74339 100644 --- a/book/chapters/installation.md +++ b/book/chapters/installation.md @@ -238,6 +238,20 @@ 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. +## Installing CLI11 using Conan + +You can install pre-built binaries for CLI11 or build it from source using +[Conan](https://conan.io/). Use the following command: + +```bash +conan install --requires="cli11/[*]" --build=missing +``` + +The CLI11 Conan recipe is kept up to date by Conan maintainers and community +contributors. If the version is out of date, please +[create an issue or pull request](https://github.com/conan-io/conan-center-index) +on the ConanCenterIndex repository. + ## Special instructions for GCC 8, Some clang, and WASI If you are using GCC 8 and using it in C++17 mode with CLI11. CLI11 makes use of