I wouldn’t give too much power over export sets to developers if you’re trying to do something like this. On the other hand, for the size of the task you’re looking for, VTK’s module system is on the order of the complication you’re going to end up with. Note that you can probably rip out various parts of it, but things like vtk_module_find_package
and vtk_module_scan
/vtk_module_build
are immensely helpful with gathering the required information from the project.