LinuxCommandLibrary

vcpkg

Package manager for C/C++ libraries.

TLDR

Build and add package libcurl to the vcpkg environment

$ vcpkg install curl
copy


Build and add zlib using the emscripten toolchain
$ vcpkg install --triplet=wasm32-emscripten zlib
copy


Search for a package
$ vcpkg search [pkg_name]
copy


Configure a CMake project to use vcpkg packages
$ cmake -B build -DCMAKE_TOOLCHAIN_FILE=[path/to/vcpkg_install_directory]/scripts/buildsystems/vcpkg.cmake
copy

Copied to clipboard