doc/CMakeLists.txt
changeset 561 2eb5c8ca2c91
parent 347 160bf92c7cdc
parent 497 8b56605db6a8
child 565 8668e1b5dafb
equal deleted inserted replaced
1:203945fe1f7d 4:f79a566b1d31
     7   ${CMAKE_SOURCE_DIR}/doc/Doxyfile.in
     7   ${CMAKE_SOURCE_DIR}/doc/Doxyfile.in
     8   ${CMAKE_BINARY_DIR}/doc/Doxyfile
     8   ${CMAKE_BINARY_DIR}/doc/Doxyfile
     9   @ONLY)
     9   @ONLY)
    10 
    10 
    11 IF(DOXYGEN_EXECUTABLE AND GHOSTSCRIPT_EXECUTABLE)
    11 IF(DOXYGEN_EXECUTABLE AND GHOSTSCRIPT_EXECUTABLE)
       
    12   FILE(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/html/)
    12   IF(UNIX)
    13   IF(UNIX)
    13     ADD_CUSTOM_TARGET(html
    14     ADD_CUSTOM_TARGET(html
    14       COMMAND rm -rf gen-images
    15       COMMAND rm -rf gen-images
    15       COMMAND mkdir gen-images
    16       COMMAND mkdir gen-images
    16       COMMAND ${GHOSTSCRIPT_EXECUTABLE} -dNOPAUSE -dBATCH -q -dEPSCrop -dTextAlphaBits=4 -dGraphicsAlphaBits=4 -sDEVICE=pngalpha -r18 -sOutputFile=gen-images/grid_graph.png ${CMAKE_CURRENT_SOURCE_DIR}/images/grid_graph.eps
    17       COMMAND ${GHOSTSCRIPT_EXECUTABLE} -dNOPAUSE -dBATCH -q -dEPSCrop -dTextAlphaBits=4 -dGraphicsAlphaBits=4 -sDEVICE=pngalpha -r18 -sOutputFile=gen-images/grid_graph.png ${CMAKE_CURRENT_SOURCE_DIR}/images/grid_graph.eps
    33       COMMAND ${GHOSTSCRIPT_EXECUTABLE} -dNOPAUSE -dBATCH -q -dEPSCrop -dTextAlphaBits=4 -dGraphicsAlphaBits=4 -sDEVICE=pngalpha -r18 -sOutputFile=gen-images/nodeshape_4.png ${CMAKE_CURRENT_SOURCE_DIR}/images/nodeshape_4.eps
    34       COMMAND ${GHOSTSCRIPT_EXECUTABLE} -dNOPAUSE -dBATCH -q -dEPSCrop -dTextAlphaBits=4 -dGraphicsAlphaBits=4 -sDEVICE=pngalpha -r18 -sOutputFile=gen-images/nodeshape_4.png ${CMAKE_CURRENT_SOURCE_DIR}/images/nodeshape_4.eps
    34       COMMAND if exist html rmdir /s /q html
    35       COMMAND if exist html rmdir /s /q html
    35       COMMAND ${DOXYGEN_EXECUTABLE} Doxyfile
    36       COMMAND ${DOXYGEN_EXECUTABLE} Doxyfile
    36       WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})
    37       WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})
    37   ENDIF(UNIX)
    38   ENDIF(UNIX)
       
    39   INSTALL(
       
    40     DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/html/
       
    41     DESTINATION doc
       
    42     COMPONENT html_documentation)
    38 ENDIF(DOXYGEN_EXECUTABLE AND GHOSTSCRIPT_EXECUTABLE)
    43 ENDIF(DOXYGEN_EXECUTABLE AND GHOSTSCRIPT_EXECUTABLE)
    39 
       
    40 INSTALL(
       
    41   DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/html/
       
    42   DESTINATION doc
       
    43   COMPONENT html_documentation)