1 # Macros to make using docutils to build documentation easier
3 FIND_PROGRAM(RST2HTML_PY
4 NAMES rst2html.py rst2html
5 DOC "location of the python docutils reStructured text html "
12 GET_FILENAME_COMPONENT(basename ${it} NAME_WE)
14 SET(infile ${CMAKE_CURRENT_SOURCE_DIR}/${it} )
15 SET(outfile ${CMAKE_CURRENT_BINARY_DIR}/${basename}.html)
19 COMMAND ${RST2HTML_PY}
20 ARGS ${infile} ${outfile}
24 ADD_CUSTOM_TARGET(RstHTMLDocuments_${outfile} ALL DEPENDS ${outfile})
30 # There really should be some code for building the pdf as well