vcpkg Command Examples

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: https://learn.microsoft.com/en-us/vcpkg/.

vcpkg install curl

vcpkg install --triplet=wasm32-emscripten zlib

vcpkg search {{pkg_name}}

cmake -B build -DCMAKE_TOOLCHAIN_FILE={{path/to/vcpkg_install_directory}}/scripts/buildsystems/vcpkg.cmake