mirror of
https://github.com/ceres-solver/ceres-solver.git
synced 2026-08-30 00:50:37 +08:00
1f20b72afd
This is needed for multiarch layouts where the prefix is /usr/${host}
but where arch-independent files are installed to /usr/share.
Change-Id: Icec01f8ea927594b4edb26997d6384e478415999
20 lines
641 B
CMake
20 lines
641 B
CMake
find_package(Sphinx REQUIRED)
|
|
|
|
# HTML output directory
|
|
set(SPHINX_HTML_DIR "${CMAKE_BINARY_DIR}/docs/html")
|
|
|
|
# Install documentation
|
|
install(DIRECTORY ${SPHINX_HTML_DIR}
|
|
DESTINATION "${CERES_DOCS_INSTALL_DIR}"
|
|
COMPONENT Doc
|
|
PATTERN "${SPHINX_HTML_DIR}/*")
|
|
|
|
# Building using 'make_docs.py' python script
|
|
add_custom_target(ceres_docs ALL
|
|
python
|
|
"${CMAKE_SOURCE_DIR}/scripts/make_docs.py"
|
|
"${CMAKE_SOURCE_DIR}"
|
|
"${CMAKE_BINARY_DIR}/docs"
|
|
"${SPHINX_EXECUTABLE}"
|
|
COMMENT "Building HTML documentation with Sphinx")
|