COIN-OR::LEMON - Graph Library

source: lemon-main/doc/CMakeLists.txt @ 269:f5965bbf1353

Last change on this file since 269:f5965bbf1353 was 225:c5a40fc54f1a, checked in by Alpar Juttner <alpar@…>, 16 years ago

CMake improvements.

  • documentation generation with Doxygen
  • installation support
File size: 3.2 KB
Line 
1SET(PACKAGE_NAME ${PROJECT_NAME})
2SET(PACKAGE_VERSION ${PROJECT_VERSION})
3SET(abs_top_srcdir ${CMAKE_SOURCE_DIR})
4SET(abs_top_builddir ${CMAKE_BINARY_DIR})
5
6CONFIGURE_FILE(
7  ${CMAKE_SOURCE_DIR}/doc/Doxyfile.in
8  ${CMAKE_BINARY_DIR}/doc/Doxyfile
9  @ONLY)
10
11IF(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)
37ENDIF(DOXYGEN_EXECUTABLE AND GHOSTSCRIPT_EXECUTABLE)
38
39INSTALL(
40  DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/html/
41  DESTINATION doc
42  COMPONENT html_documentation)
Note: See TracBrowser for help on using the repository browser.