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

20 lines
641 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 "${CERES_DOCS_INSTALL_DIR}"
2013-03-12 00:56:56 -07:00
COMPONENT Doc
PATTERN "${SPHINX_HTML_DIR}/*")
# Building using 'make_docs.py' python script
add_custom_target(ceres_docs ALL
2013-03-12 00:56:56 -07:00
python
"${Ceres_SOURCE_DIR}/scripts/make_docs.py"
"${Ceres_SOURCE_DIR}"
"${Ceres_BINARY_DIR}/docs"
2013-03-12 00:56:56 -07:00
"${SPHINX_EXECUTABLE}"
COMMENT "Building HTML documentation with Sphinx")