cmakeme_sphinx¶
Generate sphinx documentation for .cmake files. This module is based off of the system the CMake project uses for generating its own documentation in CMake’s
Utilties/Sphinxdirectory but can be customized/used by any cmake project.Use this module with
find_package(cmakeme)
Commands¶
cmakeme_sphinx_cmake¶Generate Sphinx documentation from the CMake Source files.
cmakeme_defaults(doc_dir orgname org_url copyright)
doc_dirDirectory containing the
.rstfiles. These files can include a CMake module by using the directive:
.. cmake-module:: path_to_cmake_filewithin a
.rstfile.orgnameThe organization name, which is shown in the top-left corner of all documentation.
org_urlThe url of the organization’s website.
copyrightThe name of the copyright holder.
The resulting documentation can be found in
${CMAKE_SOURCE_DIR}/build/html/cmake