mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-12 19:39:03 +08:00
26 lines
791 B
Markdown
26 lines
791 B
Markdown
|
# vcpkg_cmake_install
|
||
|
|
||
|
The latest version of this document lives in the [vcpkg repo](https://github.com/Microsoft/vcpkg/blob/master/maintainers/ports/vcpkg-cmake/vcpkg_cmake_install.md).
|
||
|
|
||
|
Build and install a cmake project.
|
||
|
|
||
|
```cmake
|
||
|
vcpkg_cmake_install(
|
||
|
[DISABLE_PARALLEL]
|
||
|
[ADD_BIN_TO_PATH]
|
||
|
)
|
||
|
```
|
||
|
|
||
|
`vcpkg_cmake_install` transparently forwards to [`vcpkg_cmake_build()`],
|
||
|
with additional parameters to set the `TARGET` to `install`,
|
||
|
and to set the `LOGFILE_ROOT` to `install` as well.
|
||
|
|
||
|
[`vcpkg_cmake_build()`]: vcpkg_cmake_build.cmake
|
||
|
|
||
|
## Examples:
|
||
|
|
||
|
* [zlib](https://github.com/Microsoft/vcpkg/blob/master/ports/zlib/portfile.cmake)
|
||
|
|
||
|
## Source
|
||
|
[ports/vcpkg-cmake/vcpkg\_cmake\_install.cmake](https://github.com/Microsoft/vcpkg/blob/master/ports/vcpkg-cmake/vcpkg_cmake_install.cmake)
|