1 find_package(Sphinx REQUIRED)
3 if(NOT DEFINED SPHINX_THEME)
4 set(SPHINX_THEME basic)
7 if(NOT DEFINED SPHINX_THEME_DIR)
11 # configured documentation tools and intermediate build results
12 set(BINARY_BUILD_DIR "${CMAKE_CURRENT_BINARY_DIR}/_build")
14 # Sphinx cache with pickled ReST documents
15 set(SPHINX_CACHE_DIR "${CMAKE_CURRENT_BINARY_DIR}/_doctrees")
17 # HTML output directory
18 set(SPHINX_HTML_DIR "${CMAKE_CURRENT_BINARY_DIR}/html")
21 "${CMAKE_CURRENT_SOURCE_DIR}/conf.py.in"
22 "${BINARY_BUILD_DIR}/conf.py"
25 add_custom_target(EFICAS_NOUVEAUdoc ALL
28 -d "${SPHINX_CACHE_DIR}"
29 "${CMAKE_CURRENT_SOURCE_DIR}"
31 COMMENT "Building HTML documentation with Sphinx")
33 INSTALL(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/html/ DESTINATION ${CMAKE_INSTALL_PREFIX}/Doc/)