2021-03-01 05:17:19 +08:00
# vcpkg_cmake_install
2021-03-11 01:56:07 +08:00
The latest version of this document lives in the [vcpkg repo ](https://github.com/Microsoft/vcpkg/blob/master/docs/maintainers/ports/vcpkg-cmake/vcpkg_cmake_install.md ).
2021-03-01 05:17:19 +08:00
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 )