doc/CMakeLists.txt
changeset 791 f8c468367dab
parent 726 9c7639f3a741
child 895 8131c2b9f59a
equal deleted inserted replaced
11:9f4bd1bef261 12:7d85c7ec7020
     7   ${PROJECT_SOURCE_DIR}/doc/Doxyfile.in
     7   ${PROJECT_SOURCE_DIR}/doc/Doxyfile.in
     8   ${PROJECT_BINARY_DIR}/doc/Doxyfile
     8   ${PROJECT_BINARY_DIR}/doc/Doxyfile
     9   @ONLY
     9   @ONLY
    10 )
    10 )
    11 
    11 
    12 IF(DOXYGEN_EXECUTABLE AND GHOSTSCRIPT_EXECUTABLE)
    12 IF(DOXYGEN_EXECUTABLE AND PYTHONINTERP_FOUND AND GHOSTSCRIPT_EXECUTABLE)
    13   FILE(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/html/)
    13   FILE(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/html/)
    14   SET(GHOSTSCRIPT_OPTIONS -dNOPAUSE -dBATCH -q -dEPSCrop -dTextAlphaBits=4 -dGraphicsAlphaBits=4 -sDEVICE=pngalpha)
    14   SET(GHOSTSCRIPT_OPTIONS -dNOPAUSE -dBATCH -q -dEPSCrop -dTextAlphaBits=4 -dGraphicsAlphaBits=4 -sDEVICE=pngalpha)
    15   ADD_CUSTOM_TARGET(html
    15   ADD_CUSTOM_TARGET(html
    16     COMMAND ${CMAKE_COMMAND} -E remove_directory gen-images
    16     COMMAND ${CMAKE_COMMAND} -E remove_directory gen-images
    17     COMMAND ${CMAKE_COMMAND} -E make_directory gen-images
    17     COMMAND ${CMAKE_COMMAND} -E make_directory gen-images
    26     COMMAND ${GHOSTSCRIPT_EXECUTABLE} ${GHOSTSCRIPT_OPTIONS} -r18 -sOutputFile=gen-images/nodeshape_2.png ${CMAKE_CURRENT_SOURCE_DIR}/images/nodeshape_2.eps
    26     COMMAND ${GHOSTSCRIPT_EXECUTABLE} ${GHOSTSCRIPT_OPTIONS} -r18 -sOutputFile=gen-images/nodeshape_2.png ${CMAKE_CURRENT_SOURCE_DIR}/images/nodeshape_2.eps
    27     COMMAND ${GHOSTSCRIPT_EXECUTABLE} ${GHOSTSCRIPT_OPTIONS} -r18 -sOutputFile=gen-images/nodeshape_3.png ${CMAKE_CURRENT_SOURCE_DIR}/images/nodeshape_3.eps
    27     COMMAND ${GHOSTSCRIPT_EXECUTABLE} ${GHOSTSCRIPT_OPTIONS} -r18 -sOutputFile=gen-images/nodeshape_3.png ${CMAKE_CURRENT_SOURCE_DIR}/images/nodeshape_3.eps
    28     COMMAND ${GHOSTSCRIPT_EXECUTABLE} ${GHOSTSCRIPT_OPTIONS} -r18 -sOutputFile=gen-images/nodeshape_4.png ${CMAKE_CURRENT_SOURCE_DIR}/images/nodeshape_4.eps
    28     COMMAND ${GHOSTSCRIPT_EXECUTABLE} ${GHOSTSCRIPT_OPTIONS} -r18 -sOutputFile=gen-images/nodeshape_4.png ${CMAKE_CURRENT_SOURCE_DIR}/images/nodeshape_4.eps
    29     COMMAND ${GHOSTSCRIPT_EXECUTABLE} ${GHOSTSCRIPT_OPTIONS} -r18 -sOutputFile=gen-images/strongly_connected_components.png ${CMAKE_CURRENT_SOURCE_DIR}/images/strongly_connected_components.eps
    29     COMMAND ${GHOSTSCRIPT_EXECUTABLE} ${GHOSTSCRIPT_OPTIONS} -r18 -sOutputFile=gen-images/strongly_connected_components.png ${CMAKE_CURRENT_SOURCE_DIR}/images/strongly_connected_components.eps
    30     COMMAND ${CMAKE_COMMAND} -E remove_directory html
    30     COMMAND ${CMAKE_COMMAND} -E remove_directory html
       
    31     COMMAND ${PYTHON_EXECUTABLE} ${PROJECT_SOURCE_DIR}/scripts/bib2dox.py ${CMAKE_CURRENT_SOURCE_DIR}/references.bib >references.dox
    31     COMMAND ${DOXYGEN_EXECUTABLE} Doxyfile
    32     COMMAND ${DOXYGEN_EXECUTABLE} Doxyfile
    32     WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
    33     WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
    33   )
    34   )
    34 
    35 
    35   SET_TARGET_PROPERTIES(html PROPERTIES PROJECT_LABEL BUILD_DOC)
    36   SET_TARGET_PROPERTIES(html PROPERTIES PROJECT_LABEL BUILD_DOC)