Skip to content
Snippets Groups Projects
Commit 1f185bfb authored by florent's avatar florent
Browse files

Use submodule cmake to generate python documentation

parent 1e820af2
No related branches found
No related tags found
No related merge requests found
...@@ -3,26 +3,7 @@ ...@@ -3,26 +3,7 @@
# Author: Florent Lamiraux # Author: Florent Lamiraux
# #
CONFIG_FILES_CMAKE( INCLUDE(../cmake/sphinx.cmake)
sphinx/index.rst
sphinx/conf.py
)
ADD_CUSTOM_COMMAND(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/html/index.html SPHINX_SETUP_PROJECT_DOCUMENTATION()
COMMAND ${SPHINX_EXECUTABLE} -b html \"${CMAKE_CURRENT_BINARY_DIR}/sphinx\" \"${CMAKE_CURRENT_BINARY_DIR}/sphinx-html\" SPHINX_SETUP_PROJECT_DOCUMENTATION_FINALIZE()
)
ADD_CUSTOM_TARGET(documentation ALL
DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/html/index.html)
#
# Install html documentation
#
# html files
INSTALL(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/sphinx-html
DESTINATION ${CMAKE_INSTALL_PREFIX}/share/doc/${PROJECT_NAME})
# pictures
INSTALL(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/pictures
DESTINATION ${CMAKE_INSTALL_PREFIX}/share/doc/${PROJECT_NAME})
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment