doc/CMakeLists.txt
changeset 342 5ba887b7def4
child 347 160bf92c7cdc
child 497 8b56605db6a8
equal deleted inserted replaced
-1:000000000000 0:698c6baca002
       
     1 SET(PACKAGE_NAME ${PROJECT_NAME})
       
     2 SET(PACKAGE_VERSION ${PROJECT_VERSION})
       
     3 SET(abs_top_srcdir ${CMAKE_SOURCE_DIR})
       
     4 SET(abs_top_builddir ${CMAKE_BINARY_DIR})
       
     5 
       
     6 CONFIGURE_FILE(
       
     7   ${CMAKE_SOURCE_DIR}/doc/Doxyfile.in
       
     8   ${CMAKE_BINARY_DIR}/doc/Doxyfile
       
     9   @ONLY)
       
    10 
       
    11 IF(DOXYGEN_EXECUTABLE AND GHOSTSCRIPT_EXECUTABLE)
       
    12   IF(UNIX)
       
    13     ADD_CUSTOM_TARGET(html
       
    14       COMMAND rm -rf gen-images
       
    15       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_1.png ${CMAKE_CURRENT_SOURCE_DIR}/images/nodeshape_1.eps
       
    18       COMMAND ${GHOSTSCRIPT_EXECUTABLE} -dNOPAUSE -dBATCH -q -dEPSCrop -dTextAlphaBits=4 -dGraphicsAlphaBits=4 -sDEVICE=pngalpha -r18 -sOutputFile=gen-images/nodeshape_2.png ${CMAKE_CURRENT_SOURCE_DIR}/images/nodeshape_2.eps
       
    19       COMMAND ${GHOSTSCRIPT_EXECUTABLE} -dNOPAUSE -dBATCH -q -dEPSCrop -dTextAlphaBits=4 -dGraphicsAlphaBits=4 -sDEVICE=pngalpha -r18 -sOutputFile=gen-images/nodeshape_3.png ${CMAKE_CURRENT_SOURCE_DIR}/images/nodeshape_3.eps
       
    20       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
       
    21       COMMAND rm -rf html
       
    22       COMMAND ${DOXYGEN_EXECUTABLE} Doxyfile
       
    23       WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})
       
    24   ELSEIF(WIN32)
       
    25     ADD_CUSTOM_TARGET(html
       
    26       COMMAND if exist gen-images rmdir /s /q gen-images
       
    27       COMMAND mkdir gen-images
       
    28       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
       
    29       COMMAND ${GHOSTSCRIPT_EXECUTABLE} -dNOPAUSE -dBATCH -q -dEPSCrop -dTextAlphaBits=4 -dGraphicsAlphaBits=4 -sDEVICE=pngalpha -r18 -sOutputFile=gen-images/nodeshape_1.png ${CMAKE_CURRENT_SOURCE_DIR}/images/nodeshape_1.eps
       
    30       COMMAND ${GHOSTSCRIPT_EXECUTABLE} -dNOPAUSE -dBATCH -q -dEPSCrop -dTextAlphaBits=4 -dGraphicsAlphaBits=4 -sDEVICE=pngalpha -r18 -sOutputFile=gen-images/nodeshape_2.png ${CMAKE_CURRENT_SOURCE_DIR}/images/nodeshape_2.eps
       
    31       COMMAND ${GHOSTSCRIPT_EXECUTABLE} -dNOPAUSE -dBATCH -q -dEPSCrop -dTextAlphaBits=4 -dGraphicsAlphaBits=4 -sDEVICE=pngalpha -r18 -sOutputFile=gen-images/nodeshape_3.png ${CMAKE_CURRENT_SOURCE_DIR}/images/nodeshape_3.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 if exist html rmdir /s /q html
       
    34       COMMAND ${DOXYGEN_EXECUTABLE} Doxyfile
       
    35       WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})
       
    36   ENDIF(UNIX)
       
    37 ENDIF(DOXYGEN_EXECUTABLE AND GHOSTSCRIPT_EXECUTABLE)
       
    38 
       
    39 INSTALL(
       
    40   DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/html/
       
    41   DESTINATION doc
       
    42   COMPONENT html_documentation)