Wiki

Clone wiki

premake-dev / forceincludes

We've moved to GitHub!

The [latest version of this page is now here](https://github.com/premake/premake-core/wiki/forceincludes).


The forceincludes function applies one or more "forced include" files to the project; these includes behave as it they had been injected into the first line of each source file in the project.

forceincludes  { "files" }

Applies To

Solutions, projects, and configurations.

Parameters

files specifies a list of files to be force included. Paths should be specified relative to the currently running script file.

Examples

forceincludes { "stdafx.h" }

Updated