Files
ceres-solver/docs/source/CMakeLists.txt
T

24 lines
738 B
CMake
Raw Normal View History

find_package(Sphinx REQUIRED)
2013-03-12 00:56:56 -07:00
# HTML output directory
set(SPHINX_HTML_DIR "${Ceres_BINARY_DIR}/docs/html")
2013-03-12 00:56:56 -07:00
# Install documentation
install(DIRECTORY ${SPHINX_HTML_DIR}
DESTINATION ${CMAKE_INSTALL_DOCDIR}
2013-03-12 00:56:56 -07:00
COMPONENT Doc
PATTERN "${SPHINX_HTML_DIR}/*")
# Find python 3
find_package(PythonInterp 3 REQUIRED)
2013-03-12 00:56:56 -07:00
# Building using 'make_docs.py' python script
add_custom_target(ceres_docs ALL
${PYTHON_EXECUTABLE}
"${Ceres_SOURCE_DIR}/scripts/make_docs.py"
"${Ceres_SOURCE_DIR}"
"${Ceres_BINARY_DIR}/docs"
2013-03-12 00:56:56 -07:00
"${SPHINX_EXECUTABLE}"
USES_TERMINAL
2013-03-12 00:56:56 -07:00
COMMENT "Building HTML documentation with Sphinx")