CMakeLists.txt 717 B

1234567891011121314151617181920212223242526272829
  1. #
  2. # Build the documentation
  3. #
  4. INCLUDE (${CMAKE_ROOT}/Modules/Documentation.cmake OPTIONAL)
  5. IF (BUILD_DOCUMENTATION)
  6. INCLUDE (${CMAKE_ROOT}/Modules/FindVTK.cmake)
  7. #
  8. # Configure the script and the doxyfile, then add target
  9. #
  10. IF(NOT DOT_PATH)
  11. GET_FILENAME_COMPONENT(DOT_PATH ${DOT} PATH)
  12. ENDIF(NOT DOT_PATH)
  13. CONFIGURE_FILE(
  14. ${CMAKE_SOURCE_DIR}/Utilities/Doxygen/doxyfile.in
  15. ${CMAKE_BINARY_DIR}/Utilities/Doxygen/doxyfile)
  16. CONFIGURE_FILE(
  17. ${CMAKE_SOURCE_DIR}/Utilities/Doxygen/doc_makeall.sh.in
  18. ${CMAKE_BINARY_DIR}/Utilities/Doxygen/doc_makeall.sh)
  19. ADD_CUSTOM_TARGET(DoxygenDoc
  20. ${BASH}
  21. ${CMAKE_BINARY_DIR}/Utilities/Doxygen/doc_makeall.sh)
  22. ENDIF (BUILD_DOCUMENTATION)