add new chinese translations
This commit is contained in:
21
pages.zh/common/vcpkg.md
Normal file
21
pages.zh/common/vcpkg.md
Normal file
@@ -0,0 +1,21 @@
|
||||
# vcpkg
|
||||
|
||||
> C/C++ 库的包管理器。
|
||||
> 注意:包并不安装在系统中。要使用它们,您需要告诉您的构建系统(例如,CMake)使用 `vcpkg`。
|
||||
> 更多信息:<https://learn.microsoft.com/zh-cn/vcpkg/>。
|
||||
|
||||
- 构建并将包 `libcurl` 添加到 `vcpkg` 环境中:
|
||||
|
||||
`vcpkg install curl`
|
||||
|
||||
- 使用 `emscripten` 工具链构建并添加 `zlib`:
|
||||
|
||||
`vcpkg install --triplet=wasm32-emscripten zlib`
|
||||
|
||||
- 搜索包:
|
||||
|
||||
`vcpkg search {{pkg_name}}`
|
||||
|
||||
- 配置 CMake 项目以使用 `vcpkg` 包:
|
||||
|
||||
`cmake -B build -DCMAKE_TOOLCHAIN_FILE={{path/to/vcpkg_install_directory}}/scripts/buildsystems/vcpkg.cmake`
|
Reference in New Issue
Block a user