3
0
mirror of https://github.com/triqs/dft_tools synced 2024-11-19 04:22:29 +01:00
dft_tools/doc/CMakeLists.txt

30 lines
907 B
CMake
Raw Normal View History

2013-08-07 16:40:18 +02:00
# generate the conf.py
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/conf.py.in ${CMAKE_CURRENT_BINARY_DIR}/conf.py)
# all rst files of the documentation
file(GLOB_RECURSE doc_sources *.rst)
# create documentation target
set(sphinx_top ${CMAKE_CURRENT_BINARY_DIR}/html/index.html)
2014-10-28 09:34:34 +01:00
add_custom_command(OUTPUT ${sphinx_top} DEPENDS ${doc_sources} py_copy
2013-08-07 16:40:18 +02:00
COMMAND ${CMAKE_BINARY_DIR}/build_pytriqs ${TRIQS_SPHINXBUILD_EXECUTABLE} -c . -b html ${CMAKE_CURRENT_SOURCE_DIR} html)
add_custom_target(doc_sphinx ALL DEPENDS ${sphinx_top})
# install
install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/html/ COMPONENT documentation DESTINATION share/doc/dft_tools
FILES_MATCHING
PATTERN "*.html"
PATTERN "*.png"
PATTERN "*.js"
PATTERN "_*"
2013-09-01 17:56:17 +02:00
PATTERN "*.jpg"
2013-08-07 16:40:18 +02:00
PATTERN "*.gif"
PATTERN "*.xsl"
PATTERN "*.css"
PATTERN "*.pdf"
PATTERN "*.py"
PATTERN "*.txt"
2013-09-04 16:54:45 +02:00
PATTERN "*.inv"
2013-08-07 16:40:18 +02:00
PATTERN "*.bib"
)