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

22 lines
740 B
CMake
Raw Normal View History

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}/*")
2023-09-09 20:55:57 +02:00
# Find python
find_package(Python REQUIRED COMPONENTS Interpreter)
2013-03-12 00:56:56 -07:00
# Building using 'make_docs.py' python script
add_custom_target(ceres_docs ALL
2023-09-09 20:55:57 +02:00
$<TARGET_FILE:Python::Interpreter>
"${Ceres_SOURCE_DIR}/scripts/make_docs.py"
"${Ceres_SOURCE_DIR}"
"${Ceres_BINARY_DIR}/docs"
2023-09-10 15:25:31 +02:00
"${Sphinx_BUILD_EXECUTABLE}"
USES_TERMINAL
2013-03-12 00:56:56 -07:00
COMMENT "Building HTML documentation with Sphinx")