[225] | 1 | SET(PACKAGE_NAME ${PROJECT_NAME}) |
---|
| 2 | SET(PACKAGE_VERSION ${PROJECT_VERSION}) |
---|
[549] | 3 | SET(abs_top_srcdir ${PROJECT_SOURCE_DIR}) |
---|
| 4 | SET(abs_top_builddir ${PROJECT_BINARY_DIR}) |
---|
[225] | 5 | |
---|
| 6 | CONFIGURE_FILE( |
---|
[549] | 7 | ${PROJECT_SOURCE_DIR}/doc/Doxyfile.in |
---|
| 8 | ${PROJECT_BINARY_DIR}/doc/Doxyfile |
---|
[225] | 9 | @ONLY) |
---|
| 10 | |
---|
| 11 | IF(DOXYGEN_EXECUTABLE AND GHOSTSCRIPT_EXECUTABLE) |
---|
[475] | 12 | FILE(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/html/) |
---|
[225] | 13 | IF(UNIX) |
---|
| 14 | ADD_CUSTOM_TARGET(html |
---|
| 15 | COMMAND rm -rf gen-images |
---|
| 16 | COMMAND mkdir gen-images |
---|
[335] | 17 | 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 |
---|
[225] | 18 | 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 |
---|
| 19 | 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 |
---|
| 20 | 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 |
---|
| 21 | 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 |
---|
| 22 | 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 |
---|
| 23 | COMMAND rm -rf html |
---|
| 24 | COMMAND ${DOXYGEN_EXECUTABLE} Doxyfile |
---|
| 25 | WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}) |
---|
| 26 | ELSEIF(WIN32) |
---|
| 27 | ADD_CUSTOM_TARGET(html |
---|
| 28 | COMMAND if exist gen-images rmdir /s /q gen-images |
---|
| 29 | COMMAND mkdir gen-images |
---|
| 30 | 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 |
---|
| 31 | 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 |
---|
| 32 | 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 |
---|
| 33 | 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 |
---|
| 34 | 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 |
---|
| 35 | COMMAND if exist html rmdir /s /q html |
---|
| 36 | COMMAND ${DOXYGEN_EXECUTABLE} Doxyfile |
---|
| 37 | WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}) |
---|
| 38 | ENDIF(UNIX) |
---|
[475] | 39 | INSTALL( |
---|
| 40 | DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/html/ |
---|
[500] | 41 | DESTINATION share/doc |
---|
[475] | 42 | COMPONENT html_documentation) |
---|
[225] | 43 | ENDIF(DOXYGEN_EXECUTABLE AND GHOSTSCRIPT_EXECUTABLE) |
---|