doc/CMakeLists.txt
branch1.0
changeset 504 29cbdb01d5f0
parent 225 c5a40fc54f1a
child 520 97070bd10b98
child 553 efec3c133e74
equal deleted inserted replaced
0:698c6baca002 2:db248098f33b
     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/nodeshape_0.png ${CMAKE_CURRENT_SOURCE_DIR}/images/nodeshape_0.eps
    17       COMMAND ${GHOSTSCRIPT_EXECUTABLE} -dNOPAUSE -dBATCH -q -dEPSCrop -dTextAlphaBits=4 -dGraphicsAlphaBits=4 -sDEVICE=pngalpha -r18 -sOutputFile=gen-images/nodeshape_0.png ${CMAKE_CURRENT_SOURCE_DIR}/images/nodeshape_0.eps
    32       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
    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
    33       COMMAND if exist html rmdir /s /q html
    34       COMMAND if exist html rmdir /s /q html
    34       COMMAND ${DOXYGEN_EXECUTABLE} Doxyfile
    35       COMMAND ${DOXYGEN_EXECUTABLE} Doxyfile
    35       WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})
    36       WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})
    36   ENDIF(UNIX)
    37   ENDIF(UNIX)
       
    38   INSTALL(
       
    39     DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/html/
       
    40     DESTINATION doc
       
    41     COMPONENT html_documentation)
    37 ENDIF(DOXYGEN_EXECUTABLE AND GHOSTSCRIPT_EXECUTABLE)
    42 ENDIF(DOXYGEN_EXECUTABLE AND GHOSTSCRIPT_EXECUTABLE)
    38 
       
    39 INSTALL(
       
    40   DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/html/
       
    41   DESTINATION doc
       
    42   COMPONENT html_documentation)