alpar@225: SET(PACKAGE_NAME ${PROJECT_NAME}) alpar@225: SET(PACKAGE_VERSION ${PROJECT_VERSION}) alpar@225: SET(abs_top_srcdir ${CMAKE_SOURCE_DIR}) alpar@225: SET(abs_top_builddir ${CMAKE_BINARY_DIR}) alpar@225: alpar@225: CONFIGURE_FILE( alpar@225: ${CMAKE_SOURCE_DIR}/doc/Doxyfile.in alpar@225: ${CMAKE_BINARY_DIR}/doc/Doxyfile alpar@225: @ONLY) alpar@225: alpar@225: IF(DOXYGEN_EXECUTABLE AND GHOSTSCRIPT_EXECUTABLE) ladanyi@475: FILE(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/html/) alpar@225: IF(UNIX) alpar@225: ADD_CUSTOM_TARGET(html alpar@225: COMMAND rm -rf gen-images alpar@225: COMMAND mkdir gen-images alpar@225: 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 alpar@225: 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 alpar@225: 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 alpar@225: 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 alpar@225: 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 alpar@225: COMMAND rm -rf html alpar@225: COMMAND ${DOXYGEN_EXECUTABLE} Doxyfile alpar@225: WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}) alpar@225: ELSEIF(WIN32) alpar@225: ADD_CUSTOM_TARGET(html alpar@225: COMMAND if exist gen-images rmdir /s /q gen-images alpar@225: COMMAND mkdir gen-images alpar@225: 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 alpar@225: 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 alpar@225: 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 alpar@225: 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 alpar@225: 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 alpar@225: COMMAND if exist html rmdir /s /q html alpar@225: COMMAND ${DOXYGEN_EXECUTABLE} Doxyfile alpar@225: WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}) alpar@225: ENDIF(UNIX) ladanyi@475: INSTALL( ladanyi@475: DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/html/ alpar@501: DESTINATION share/doc ladanyi@475: COMPONENT html_documentation) alpar@225: ENDIF(DOXYGEN_EXECUTABLE AND GHOSTSCRIPT_EXECUTABLE)