2017-05-25 14:33:16 +08:00
|
|
|
# vcpkg_install_cmake
|
|
|
|
|
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/vcpkg_install_cmake.md).
|
2021-03-01 05:17:19 +08:00
|
|
|
|
|
|
|
**This function has been deprecated in favor of `vcpkg_cmake_install` from the vcpkg-cmake port.**
|
|
|
|
|
2017-05-25 14:33:16 +08:00
|
|
|
Build and install a cmake project.
|
|
|
|
|
|
|
|
## Usage:
|
|
|
|
```cmake
|
2017-10-06 08:49:28 +08:00
|
|
|
vcpkg_install_cmake(...)
|
2017-05-25 14:33:16 +08:00
|
|
|
```
|
|
|
|
|
|
|
|
## Parameters:
|
2017-10-06 08:49:28 +08:00
|
|
|
See [`vcpkg_build_cmake()`](vcpkg_build_cmake.md).
|
2017-05-25 14:33:16 +08:00
|
|
|
|
|
|
|
## Notes:
|
2017-10-06 08:49:28 +08:00
|
|
|
This command transparently forwards to [`vcpkg_build_cmake()`](vcpkg_build_cmake.md), adding a `TARGET install`
|
|
|
|
parameter.
|
2017-05-25 14:33:16 +08:00
|
|
|
|
|
|
|
## Examples:
|
|
|
|
|
|
|
|
* [zlib](https://github.com/Microsoft/vcpkg/blob/master/ports/zlib/portfile.cmake)
|
|
|
|
* [cpprestsdk](https://github.com/Microsoft/vcpkg/blob/master/ports/cpprestsdk/portfile.cmake)
|
|
|
|
* [poco](https://github.com/Microsoft/vcpkg/blob/master/ports/poco/portfile.cmake)
|
|
|
|
* [opencv](https://github.com/Microsoft/vcpkg/blob/master/ports/opencv/portfile.cmake)
|
|
|
|
|
|
|
|
## Source
|
2021-03-01 05:17:19 +08:00
|
|
|
[scripts/cmake/vcpkg\_install\_cmake.cmake](https://github.com/Microsoft/vcpkg/blob/master/scripts/cmake/vcpkg_install_cmake.cmake)
|