Files
ceres-solver/docs/source/CMakeLists.txt
T
Pablo Speciale 55b6c966c4 * Fixed the location of the Ceres doc (once installed with 'make install')
* Doing 'make ceres_docs' can be used to create the documentation (if the BUILD_DOCUMENTATION=ON)
* Included the copyright boilerplate for FindSphinx.cmake

Change-Id: Iea21eba9e68384b4fe72c85fa88c76b0ba8a7a1d
2013-03-20 17:56:47 -07:00

20 lines
629 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 share/doc/ceres
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")