The cmake
plugin is useful for building CMake-based parts.
A cmake project will typically include a CMakeLists.txt file to drive the build, and the plugin requires that CMakeLists.txt exists within the root of the source tree.
This plugin also supports options from the make plugin.
For a simple example, see MOOS applications, or search GitHub for projects already using the plugin.
This plugin uses the common plugin keywords as well as those for “sources”. For more information, see Snapcraft parts metadata.
Additionally, this plugin uses the following base dependent plugin-specific keywords:
cmake-generator
(string; default: “Unix Makefiles”)Ninja
or Unix Makefiles
(default).cmake-parameters
(list of strings)Requires Snapcraft version 4.0+.
configflags
(list of strings)Requires Snapcraft version 3.0+.
This is a snapcraft plugin. See Snapcraft plugins and Supported plugins for further details on how plugins are used.
Last updated 4 months ago. Help improve this document in the forum.