1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-08-04 12:55:32 +02:00
tldr/pages/common/vcpkg.md
Managor 5305776d45
*: capitalize the first letter after "Note:" (#16226)
Co-authored-by: Machiavelli <145562237+MachiavelliII@users.noreply.github.com>
2025-05-04 05:15:17 +03:00

649 B

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/en-us/vcpkg/.

  • 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