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
libcurlto thevcpkgenvironment:
vcpkg install curl
- Build and add
zlibusing theemscriptentoolchain:
vcpkg install --triplet=wasm32-emscripten zlib
- Search for a package:
vcpkg search
- Configure a CMake project to use
vcpkgpackages:
cmake -B build -DCMAKE_TOOLCHAIN_FILE=/scripts/buildsystems/vcpkg.cmake
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
