From b6ebe64edb384b321094dcebf65db3fe7cca6909 Mon Sep 17 00:00:00 2001 From: iTrooz Date: Mon, 19 Feb 2024 15:19:01 +0100 Subject: [PATCH] vcpkg: add page (#12295) * vcpkg: add page --------- Co-authored-by: Vitor Henrique <87824454+vitorhcl@users.noreply.github.com> --- pages/common/vcpkg.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 pages/common/vcpkg.md diff --git a/pages/common/vcpkg.md b/pages/common/vcpkg.md new file mode 100644 index 000000000..4b14022da --- /dev/null +++ b/pages/common/vcpkg.md @@ -0,0 +1,21 @@ +# vcpkg + +> Package manager for C/C++ libraries. +> Note: packages are not installed in the system. To use them, you need to tell your build system (e.g. CMake) to use `vckg`. +> More information: . + +- Build and add package `libcurl` to the `vcpkg` environment: + +`vcpkg install curl` + +- Build and add `zlib` using the `emscripten` toolchain: + +`vcpkg install --triplet=wasm32-emscripten zlib` + +- Search for a package: + +`vcpkg search {{pkg_name}}` + +- Configure a CMake project to use `vcpkg` packages: + +`cmake -B build -DCMAKE_TOOLCHAIN_FILE={{path/to/vcpkg_install_directory}}/scripts/buildsystems/vcpkg.cmake`