snippetbashTip
vcpkg — Package manager for C/C++ libraries. Note: Packages are not installed in the system. To use them, yo
Viewed 0 times
librariescommandnoteclipackagevcpkgformanager
Problem
How to use the
vcpkg command: 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/vcpkg/>.Solution
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: <https://learn.microsoft.com/vcpkg/>.Build and add package
libcurl to the vcpkg environment:vcpkg install curlBuild and add
zlib using the emscripten toolchain:vcpkg install --triplet=wasm32-emscripten zlibSearch 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.cmakeCode Snippets
Build and add package `libcurl` to the `vcpkg` environment
vcpkg install curlBuild and add `zlib` using the `emscripten` toolchain
vcpkg install --triplet=wasm32-emscripten zlibSearch 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.cmakeContext
tldr-pages: common/vcpkg
Revisions (0)
No revisions yet.