CMake

This plugin provides the cmake buildsystem as foreign-buildsystem to nitto. To enable this plugin, put plugin "cmake" at the top of your buildfile.

Working

Currently, the plugin works as follows:

  • it runs cmake -S <source path> -B <target's build-dir> to generates the unix makefiles
  • runs make to build the artifacts

Subcommands

Additionally to the subcommands below, the block for the buildsystem command also allows the if-command.

configure

Set options for a call to cmake. Also allows the if-command.

env

Sets environment variables.

arg

Adds an commandline argument.

make

Options for running make.

parallel

Sets the count of parallel jobs (-j). Per default this is half your core count. Cannot be set higher than your actual core count.

Arguments
# Name Type Info
0 jobs num

copy

Copies a file from the source dir into nitto’s build-dir.

Arguments
# Name Type Info
0 from str Expanded?: ✅
1 to str

If omitted, the same value as "from" is used instead.

Expanded?: ✅

copy_result

Copies a file from the build dir into nitto’s out-dir.

Arguments
# Name Type Info
0 from str Expanded?: ✅
1 to str

If omitted, the same value as "from" is used instead.

Expanded?: ✅