Documenting CMake Scripts and Formatting

Hello everybody,

I’m working on a project to convert an existing Makefile project to CMake. I want to start documenting all of the variables, macros, functions, and files I’ve created but haven’t found a standardized way of doing so. I’m used to documenting C/C++ code using the Doxygen format so I’ve been trying to find something similar to what Doxygen describes, but for CMake code. I’m also curious if there are any standardized ways of formatting CMake code. Any help or examples would be greatly appreciated, thanks!