CMakeLists.txt 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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. #
  18. # Configure the script and the doxyfile, then add target
  19. #
  20. if(NOT DOT_PATH)
  21. get_filename_component(DOT_PATH ${DOT} PATH)
  22. endif()
  23. configure_file(
  24. ${CMake_SOURCE_DIR}/Utilities/Doxygen/doxyfile.in
  25. ${CMake_BINARY_DIR}/Utilities/Doxygen/doxyfile)
  26. configure_file(
  27. ${CMake_SOURCE_DIR}/Utilities/Doxygen/doc_makeall.sh.in
  28. ${CMake_BINARY_DIR}/Utilities/Doxygen/doc_makeall.sh)
  29. add_custom_target(DoxygenDoc
  30. ${BASH}
  31. ${CMake_BINARY_DIR}/Utilities/Doxygen/doc_makeall.sh)
  32. endif ()