Note: This API documentation is for FAKE version 4. The migration API documentation can be found here. The API documentation for the new fake 5 modules can be found here

CMake

Contains tasks which allow to use CMake to build CMakeLists files. See Samples/CMakeSupport for usage examples.

Functions and values

Function or valueDescription
Build(setParams)
Signature: setParams:(CMakeBuildParams -> CMakeBuildParams) -> unit

Calls cmake --build to build a project.

Parameters

  • setParams - Function used to manipulate the default CMake parameters. See CMakeBuildParams.
CMakeBuildDefaults
Signature: CMakeBuildParams

The default option set given to CMakeBuild.

CMakeGenerateDefaults
Signature: CMakeGenerateParams

The default option set given to CMakeGenerate.

Generate(setParams)
Signature: setParams:(CMakeGenerateParams -> CMakeGenerateParams) -> unit

Calls cmake to generate a project.

Parameters

  • setParams - Function used to manipulate the default CMake parameters. See CMakeGenerateParams.