![]() |
TCM 1.1.0
A CMake module to reduce boilerplate
|
TCM provides a single function to generate a documentation using Doxygen (if installed) and Doxygen Awesome.
Parameter FILES specify input files and directories. ${PROJECT_SOURCE_DIR}/README.md is always added to the input.
Parameter ASSETS specify input files and directories that will be added to DOXYGEN_IMAGE_PATH. Referenced assets will be copied to the output folders by doxygen.
It uses doxygen_add_docs() under the hood. So, any Doxygen config option can be overridden by setting relevant variables before calling tcm_documentation(). For more information : https://cmake.org/cmake/help/latest/module/FindDoxygen.html
However, following parameters cannot not be overridden, since tcm_documentation() is setting them:
DOXYGEN_GENERATE_TREEVIEW to YESDOXYGEN_DISABLE_INDEX to NODOXYGEN_FULL_SIDEBAR to NODOXYGEN_HTML_COLORSTYLE to LIGHTDOXYGEN_DOT_IMAGE_FORMAT to svgBy default, DOXYGEN_USE_MDFILE_AS_MAINPAGE is set to "${PROJECT_SOURCE_DIR}/README.md".
Also, TCM provides a default header, footer, stylesheet, extra files (js script). You can override them, but since they are tightly linked together, you are better off not calling tcm_documentation().