When dealing with a C/C++ project that utilizes cmake one will sooner or later need to organize the available build options into profiles than enable multiple features in a convenient manners. Two of the ways to achieve that is the use of cmake cache files and cmake presets.
Let’s start with setting a common ground for this test using the vtk repository:
git clone https://gitlab.kitware.com/vtk/vtk
cd vtk/
git switch -d v9.1.0
git submodule init
git submodule update --recursive
VTK has already a number of documented build options on top of the ones that cmake provides for every project.
[Read More]