thilinarmtb / doxygen-sphinx-breath-cmake

CMake project documentation with Doxygen, Sphinx and Breathe.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

doxygen-sphinx-breath-cmake

CMake project documentation with Doxygen, Sphinx and Breathe. This repo is based on the following tutorial: https://devblogs.microsoft.com/cppblog/clear-functional-c-documentation-with-sphinx-breathe-doxygen-cmake/

Install dependencies

Install conda to manage dependencies first. Then create a conda environment and then do the following:

conda create -n doxygen-sphinx-breathe-cmake python=3.10
conda activate doxygen-sphinx-breathe-cmake
pip install sphinx sphinx_rtd_theme breathe
conda install -c conda-forge doxygen cmake

Build the project with documentation

mkdir build; cd build; cmake -DCMAKE_INSTALL_PREFIX=../install ..; make install; cd -

Open installed documentation

open install/share/doc/cc/sphinx/index.html

About

CMake project documentation with Doxygen, Sphinx and Breathe.


Languages

Language:CMake 78.6%Language:C 14.1%Language:C++ 7.3%