1
# CMake find_package() Module for Sphinx documentation generator
2
# http://sphinx-doc.org/
8
# If successful the following variables will be defined
12
find_program(SPHINX_EXECUTABLE
13
NAMES sphinx-build sphinx-build2
14
DOC "Path to sphinx-build executable")
16
# Handle REQUIRED and QUIET arguments
17
# this will also set SPHINX_FOUND to true if SPHINX_EXECUTABLE exists
18
include(FindPackageHandleStandardArgs)
19
find_package_handle_standard_args(Sphinx
20
"Failed to locate sphinx-build executable"
23
# Provide options for controlling different types of output
24
option(SPHINX_OUTPUT_HTML "Output standalone HTML files" ON)
25
option(SPHINX_OUTPUT_MAN "Output man pages" ON)
27
option(SPHINX_WARNINGS_AS_ERRORS "When building documentation treat warnings as errors" ON)