1
0

CMakeLists.txt 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. #=============================================================================
  2. # CMake - Cross Platform Makefile Generator
  3. # Copyright 2000-2009 Kitware, Inc., Insight Software Consortium
  4. #
  5. # Distributed under the OSI-approved BSD License (the "License");
  6. # see accompanying file Copyright.txt for details.
  7. #
  8. # This software is distributed WITHOUT ANY WARRANTY; without even the
  9. # implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  10. # See the License for more information.
  11. #=============================================================================
  12. #
  13. # Build the documentation
  14. #
  15. INCLUDE (${CMAKE_ROOT}/Modules/Documentation.cmake OPTIONAL)
  16. IF (BUILD_DOCUMENTATION)
  17. INCLUDE (${CMAKE_ROOT}/Modules/FindVTK.cmake)
  18. #
  19. # Configure the script and the doxyfile, then add target
  20. #
  21. IF(NOT DOT_PATH)
  22. GET_FILENAME_COMPONENT(DOT_PATH ${DOT} PATH)
  23. ENDIF(NOT DOT_PATH)
  24. CONFIGURE_FILE(
  25. ${CMake_SOURCE_DIR}/Utilities/Doxygen/doxyfile.in
  26. ${CMake_BINARY_DIR}/Utilities/Doxygen/doxyfile)
  27. CONFIGURE_FILE(
  28. ${CMake_SOURCE_DIR}/Utilities/Doxygen/doc_makeall.sh.in
  29. ${CMake_BINARY_DIR}/Utilities/Doxygen/doc_makeall.sh)
  30. ADD_CUSTOM_TARGET(DoxygenDoc
  31. ${BASH}
  32. ${CMake_BINARY_DIR}/Utilities/Doxygen/doc_makeall.sh)
  33. ENDIF (BUILD_DOCUMENTATION)