cmake
with the given options to generate the build scripts.To run the generated build script, you have to add build tool invocation steps.
For example, to run the equivalent of thesh
shell script
mkdir build && cd build
cmake -G Ninja <workpace-root>/source
DESTDIR=<workpace-root>/artifacts ninja all install
you would enter the following pipeline script:
cmakeBuild
generator: 'Ninja',
buildDir: 'build',
sourceDir: 'source',
installation: 'InSearchPath',
steps: [
[args: 'all install', envVars: 'DESTDIR=${WORKSPACE}/artifacts']
]