mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-22 06:22:07 +02:00
vcpkg: add page (#12295)
* vcpkg: add page --------- Co-authored-by: Vitor Henrique <87824454+vitorhcl@users.noreply.github.com>
This commit is contained in:
parent
1ba7fb9460
commit
b6ebe64edb
1 changed files with 21 additions and 0 deletions
21
pages/common/vcpkg.md
Normal file
21
pages/common/vcpkg.md
Normal file
|
@ -0,0 +1,21 @@
|
|||
# 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`
|
Loading…
Add table
Reference in a new issue