We stuff vtkModule.cmake
through Sphinx using block comments. See the modern version or look at a historical version which used Doxygen syntax. I’m not intimately familiar with how it is/was hooked into the documentation process, but Doxygen at least output it like an old K&R C-style function declaration.