- Qt Creator Documentation
- Build with GN
- Qt Creator 20.0.0

Build for many platforms ◦ Configure development tools

# Build with GN

GN (Generate Ninja) is a meta-build system that generates build files for Ninja.

Note: Activate the GN extension to use it.

## Open GN projects

To open GN projects, go to File > Open Project, and then select the `BUILD.gn` file from your project.

## Add GN tools

To specify paths to GN executables:

1. Select Preferences > GN > Tools > Add.

2. In Name, specify a name for the tool.
3. In Path, specify the path to the GN executable.
4. Select Apply to save your changes.

## Add GN tools to kits

To use GN to build projects:

1. Go to Preferences > Kits > Kits.
2. Select a kit to edit.
3. In GN Tool, select a GN tool.

4. Activate the kit for the project.

For more information, see Managing kits.

See also Activate extensions and Activate kits for a project.