Add sphinx as doc target.

This commit is contained in:
2019-08-08 03:51:22 +00:00
parent ff3ff8d8b2
commit 52ba9d8ebe
4 changed files with 45 additions and 12 deletions

13
cmake/FindSphinx.cmake Normal file
View File

@@ -0,0 +1,13 @@
# Via https://devblogs.microsoft.com/cppblog/clear-functional-c-documentation-with-sphinx-breathe-doxygen-cmake/
# Look for an executable called sphinx-build
find_program(SPHINX_EXECUTABLE
NAMES sphinx-build
DOC "Path to sphinx-build executable")
include(FindPackageHandleStandardArgs)
# Handle standard arguments to find_package like REQUIRED and QUIET
find_package_handle_standard_args(Sphinx
"Failed to find sphinx-build executable"
SPHINX_EXECUTABLE)