What type of documentation tool you use in your cmake Files ?

At https://gitlab.kitware.com/vtk/vtk/-/blob/master/CMake/vtkModuleGraphviz.cmake#L1-7 you are using a documentation style I don’t know. I know about CMinx which uses #[[[ ... #]]. I also tried doxygen but it seems not doable with doxygen. I wonder what you use here.

@ben.boeckel

Doxygen. The filter here is invoked by the doxyfile.

Indeed, it is just a crude script that strips out CMake to make it look like K&R C. The documentation renders “well enough” and allows us to cross-reference in the overall documentation too.

1 Like