]>
Commit | Line | Data |
---|---|---|
1e59de90 TL |
1 | # vcpkg_cmake_install |
2 | ||
3 | 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). | |
4 | ||
5 | Build and install a cmake project. | |
6 | ||
7 | ```cmake | |
8 | vcpkg_cmake_install( | |
9 | [DISABLE_PARALLEL] | |
10 | [ADD_BIN_TO_PATH] | |
11 | ) | |
12 | ``` | |
13 | ||
14 | `vcpkg_cmake_install` transparently forwards to [`vcpkg_cmake_build()`], | |
15 | with additional parameters to set the `TARGET` to `install`, | |
16 | and to set the `LOGFILE_ROOT` to `install` as well. | |
17 | ||
18 | [`vcpkg_cmake_build()`]: vcpkg_cmake_build.cmake | |
19 | ||
20 | ## Examples: | |
21 | ||
22 | * [zlib](https://github.com/Microsoft/vcpkg/blob/master/ports/zlib/portfile.cmake) | |
23 | ||
24 | ## Source | |
25 | [ports/vcpkg-cmake/vcpkg\_cmake\_install.cmake](https://github.com/Microsoft/vcpkg/blob/master/ports/vcpkg-cmake/vcpkg_cmake_install.cmake) |