Home | History | Annotate | Download | only in source
      1 FIND_PACKAGE(Sphinx REQUIRED)
      2 
      3 # HTML output directory
      4 SET(SPHINX_HTML_DIR "${CMAKE_BINARY_DIR}/docs/html")
      5 
      6 # Install documentation
      7 INSTALL(DIRECTORY ${SPHINX_HTML_DIR}
      8         DESTINATION share/doc/ceres
      9         COMPONENT Doc
     10         PATTERN "${SPHINX_HTML_DIR}/*")
     11 
     12 # Building using 'make_docs.py' python script
     13 ADD_CUSTOM_TARGET(ceres_docs ALL
     14                   python
     15                   "${CMAKE_SOURCE_DIR}/scripts/make_docs.py"
     16                   "${CMAKE_SOURCE_DIR}"
     17                   "${CMAKE_BINARY_DIR}/docs"
     18                   "${SPHINX_EXECUTABLE}"
     19                   COMMENT "Building HTML documentation with Sphinx")
     20