1.1 --- a/doc/CMakeLists.txt Mon Sep 28 15:53:20 2009 +0200
1.2 +++ b/doc/CMakeLists.txt Thu Nov 05 10:27:17 2009 +0100
1.3 @@ -9,7 +9,7 @@
1.4 @ONLY
1.5 )
1.6
1.7 -IF(DOXYGEN_EXECUTABLE AND GHOSTSCRIPT_EXECUTABLE)
1.8 +IF(DOXYGEN_EXECUTABLE AND PYTHONINTERP_FOUND AND GHOSTSCRIPT_EXECUTABLE)
1.9 FILE(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/html/)
1.10 SET(GHOSTSCRIPT_OPTIONS -dNOPAUSE -dBATCH -q -dEPSCrop -dTextAlphaBits=4 -dGraphicsAlphaBits=4 -sDEVICE=pngalpha)
1.11 ADD_CUSTOM_TARGET(html
1.12 @@ -28,6 +28,7 @@
1.13 COMMAND ${GHOSTSCRIPT_EXECUTABLE} ${GHOSTSCRIPT_OPTIONS} -r18 -sOutputFile=gen-images/nodeshape_4.png ${CMAKE_CURRENT_SOURCE_DIR}/images/nodeshape_4.eps
1.14 COMMAND ${GHOSTSCRIPT_EXECUTABLE} ${GHOSTSCRIPT_OPTIONS} -r18 -sOutputFile=gen-images/strongly_connected_components.png ${CMAKE_CURRENT_SOURCE_DIR}/images/strongly_connected_components.eps
1.15 COMMAND ${CMAKE_COMMAND} -E remove_directory html
1.16 + COMMAND ${PYTHON_EXECUTABLE} ${PROJECT_SOURCE_DIR}/scripts/bib2dox.py ${CMAKE_CURRENT_SOURCE_DIR}/references.bib >references.dox
1.17 COMMAND ${DOXYGEN_EXECUTABLE} Doxyfile
1.18 WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
1.19 )