Commit 3e651327 authored by Lukas Riedel's avatar Lukas Riedel

install doc programs into venv and reset SPHINX_EXECUTABLE. copy README into build-cmake/doc

parent 677fb296
message(STATUS "Python modules path: ${DORIE_PYTHON_MODULES}")
function(dorie_install_doc_utils)
# install requirements into dune venv
set(INSTALL_CMD -m pip install -r ${CMAKE_CURRENT_SOURCE_DIR}/requirements.txt)
dune_execute_process(COMMAND "${DUNE_PYTHON_VIRTUALENV_EXECUTABLE}" "${INSTALL_CMD}"
ERROR_MESSAGE "dune_python_install_package: Error installing doc utilities into virtualenv!")
# find Sphinx in dune venv directory
unset(SPHINX_EXECUTABLE CACHE)
find_program(SPHINX_EXECUTABLE
NAMES sphinx-build
PATHS ${DUNE_PYTHON_VIRTUALENV_PATH}/bin
NO_DEFAULT_PATH)
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(
"Sphinx"
DEFAULT_MSG
SPHINX_EXECUTABLE
)
endfunction()
dorie_install_doc_utils()
add_subdirectory("doxygen")
add_subdirectory("default_files")
......@@ -6,6 +26,7 @@ add_subdirectory("default_files")
# copy static files to build tree
file(COPY ${CMAKE_CURRENT_LIST_DIR}/examples DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
file(COPY ${CMAKE_CURRENT_LIST_DIR}/figures DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
file(COPY ${CMAKE_SOURCE_DIR}/README.md DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
include(DuneSphinxCMakeDoc)
dune_cmake_sphinx_doc(SPHINX_CONF ${CMAKE_CURRENT_SOURCE_DIR}/conf.py.in
......
Sphinx
sphinx_rtd_theme
breathe
recommonmark
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment