How to create CMake documentation using Sphinx?

After checking CMake sources, I configured and mounted CMake successfully. But how do I create CMake documentation? I have Sphinx installed.

There is no such purpose as make doc , and it is not obvious when I need to call the Sphinx command. I did not find any hint of the CMake Wiki or their mailing list archives.

+5
source share
1 answer

I recently found an answer

Configure CMake with -DSPHINX_HTML=ON . Make sure you have python-sphinx installed. The SPHINX_EXECUTABLE point in the sphinx-build , if necessary.

written by CMake developer Brad King on the CMake developer mailing list.

https://cmake.org/pipermail/cmake-developers/2015-September/026567.html

+3
source

Source: https://habr.com/ru/post/1205085/


All Articles