doc/CMakeLists.txt
changeset 226 4c9d85f5dc93
child 335 160bf92c7cdc
child 475 8b56605db6a8
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/doc/CMakeLists.txt	Fri Jul 18 16:47:27 2008 +0100
     1.3 @@ -0,0 +1,42 @@
     1.4 +SET(PACKAGE_NAME ${PROJECT_NAME})
     1.5 +SET(PACKAGE_VERSION ${PROJECT_VERSION})
     1.6 +SET(abs_top_srcdir ${CMAKE_SOURCE_DIR})
     1.7 +SET(abs_top_builddir ${CMAKE_BINARY_DIR})
     1.8 +
     1.9 +CONFIGURE_FILE(
    1.10 +  ${CMAKE_SOURCE_DIR}/doc/Doxyfile.in
    1.11 +  ${CMAKE_BINARY_DIR}/doc/Doxyfile
    1.12 +  @ONLY)
    1.13 +
    1.14 +IF(DOXYGEN_EXECUTABLE AND GHOSTSCRIPT_EXECUTABLE)
    1.15 +  IF(UNIX)
    1.16 +    ADD_CUSTOM_TARGET(html
    1.17 +      COMMAND rm -rf gen-images
    1.18 +      COMMAND mkdir gen-images
    1.19 +      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
    1.20 +      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
    1.21 +      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
    1.22 +      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
    1.23 +      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
    1.24 +      COMMAND rm -rf html
    1.25 +      COMMAND ${DOXYGEN_EXECUTABLE} Doxyfile
    1.26 +      WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})
    1.27 +  ELSEIF(WIN32)
    1.28 +    ADD_CUSTOM_TARGET(html
    1.29 +      COMMAND if exist gen-images rmdir /s /q gen-images
    1.30 +      COMMAND mkdir gen-images
    1.31 +      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
    1.32 +      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
    1.33 +      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
    1.34 +      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
    1.35 +      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
    1.36 +      COMMAND if exist html rmdir /s /q html
    1.37 +      COMMAND ${DOXYGEN_EXECUTABLE} Doxyfile
    1.38 +      WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})
    1.39 +  ENDIF(UNIX)
    1.40 +ENDIF(DOXYGEN_EXECUTABLE AND GHOSTSCRIPT_EXECUTABLE)
    1.41 +
    1.42 +INSTALL(
    1.43 +  DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/html/
    1.44 +  DESTINATION doc
    1.45 +  COMPONENT html_documentation)