CMSIS-Build  Version 0.10.0 (beta)
Tools, software frameworks, and work flows for productivity with CMSIS based projects
 All Pages
CMake

CMake is an open-source, cross-platform family of tools designed to build, test and package software. As it is not automatically installed by cp_install.sh script, you need to get the software and install it on your machine separately.

Note
CMSIS-Build requires CMake 3.15 or above.

Invocation

CMake is called from the Bash command line with the following syntax:

cmake [options] <path-to-source>

The cbuild.sh script calls CMake twice with these options:

1. Step: Configuration

[options] Short Name
-G <generator-name> Specify a build system generator.
-S <path-to-source> Explicitly specify a source directory.
-B <path-to-build> Explicitly specify a build directory.

2. Step: Build

[options] Short Name
--build Build a CMake-generated project binary tree.
-j Number of parallel build jobs.
<target> Target to be built.
Note
  • CMake supports different build systems. By default, Ninja is used. As a Windows user, copy the Ninja binary available from Releases to the installation directory of CMSIS-Build: ./cbuild/bin where it is invoked automatically.