alpar@225: SET(PACKAGE_NAME ${PROJECT_NAME}) alpar@225: SET(PACKAGE_VERSION ${PROJECT_VERSION}) ladanyi@549: SET(abs_top_srcdir ${PROJECT_SOURCE_DIR}) ladanyi@549: SET(abs_top_builddir ${PROJECT_BINARY_DIR}) alpar@225: alpar@225: CONFIGURE_FILE( ladanyi@549: ${PROJECT_SOURCE_DIR}/doc/Doxyfile.in ladanyi@549: ${PROJECT_BINARY_DIR}/doc/Doxyfile alpar@225: @ONLY) alpar@225: alpar@225: IF(DOXYGEN_EXECUTABLE AND GHOSTSCRIPT_EXECUTABLE) ladanyi@474: 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 deba@335: 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 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@474: INSTALL( ladanyi@474: DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/html/ alpar@489: DESTINATION share/doc ladanyi@474: COMPONENT html_documentation) alpar@225: ENDIF(DOXYGEN_EXECUTABLE AND GHOSTSCRIPT_EXECUTABLE)