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

20 lines
629 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 "${CMAKE_BINARY_DIR}/docs/html")
2013-03-12 00:56:56 -07:00
# Install documentation
install(DIRECTORY ${SPHINX_HTML_DIR}
DESTINATION share/doc/ceres
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
"${CMAKE_SOURCE_DIR}/scripts/make_docs.py"
"${CMAKE_SOURCE_DIR}"
"${CMAKE_BINARY_DIR}/docs"
"${SPHINX_EXECUTABLE}"
COMMENT "Building HTML documentation with Sphinx")