From a9aa61825cb71ad50dd02c9fc712c0b6bdaf82fb Mon Sep 17 00:00:00 2001 From: Ahmed Yarub Hani Al Nuaimi Date: Thu, 23 Sep 2021 11:58:27 -0300 Subject: [PATCH] Add vcpkg documentations --- README.md | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/README.md b/README.md index a074252..630ab0b 100644 --- a/README.md +++ b/README.md @@ -46,6 +46,33 @@ make sudo make install ``` +## Installing using vcpkg +1- Download vcpkg from https://github.com/microsoft/vcpkg/ + +2- Run bootstrap-vcpkg script to prepare the repo + +3- Install the library using the command: +``` +./vcpkg install kubernetes[:triplet] +``` +To get a complete list of available triplets, run the command: +``` +vcpkg help triplet +``` +4- Add vcpkg integration to your project by using the toolchain parameter for cmake: +``` +-DCMAKE_TOOLCHAIN_FILE=VCPKG_ROOT/scripts/buildsystems/vcpkg.cmake +``` +Or using the parameter in more recent CMake versions: +``` +--toolchain VCPKG_ROOT/scripts/buildsystems/vcpkg.cmake +``` +5- Add the library to your project using the following CMake commands: +``` +find_package(kubernetes CONFIG REQUIRED) +target_link_libraries(PROJECT PRIVATE kubernetes::kubernetes) +``` + ## Building an example ```bash cd ${CLIENT_REPO_ROOT}/examples/list_pod