2020-05-12 05:58:12 +08:00
|
|
|
# vcpkg_install_gn
|
|
|
|
|
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_gn.md).
|
2021-03-01 05:17:19 +08:00
|
|
|
|
2021-05-18 02:08:33 +08:00
|
|
|
Installs a GN project.
|
|
|
|
|
|
|
|
In order to build a GN project without installing, use [`vcpkg_build_ninja()`].
|
2020-05-12 05:58:12 +08:00
|
|
|
|
|
|
|
## Usage:
|
|
|
|
```cmake
|
|
|
|
vcpkg_install_gn(
|
|
|
|
SOURCE_PATH <SOURCE_PATH>
|
|
|
|
[TARGETS <target>...]
|
|
|
|
)
|
|
|
|
```
|
|
|
|
|
|
|
|
## Parameters:
|
|
|
|
### SOURCE_PATH
|
|
|
|
The path to the source directory
|
|
|
|
|
|
|
|
### TARGETS
|
|
|
|
Only install the specified targets.
|
|
|
|
|
|
|
|
Note: includes must be handled separately
|
|
|
|
|
2021-05-18 02:08:33 +08:00
|
|
|
[`vcpkg_build_ninja()`]: vcpkg_build_ninja.md
|
|
|
|
|
2020-05-12 05:58:12 +08:00
|
|
|
## Source
|
2021-03-01 05:17:19 +08:00
|
|
|
[scripts/cmake/vcpkg\_install\_gn.cmake](https://github.com/Microsoft/vcpkg/blob/master/scripts/cmake/vcpkg_install_gn.cmake)
|