Documentation.cmake 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. # - DocumentationVTK.cmake
  2. # This file provides support for the VTK documentation framework.
  3. # It relies on several tools (Doxygen, Perl, etc).
  4. #=============================================================================
  5. # Copyright 2001-2009 Kitware, Inc.
  6. #
  7. # Distributed under the OSI-approved BSD License (the "License");
  8. # see accompanying file Copyright.txt for details.
  9. #
  10. # This software is distributed WITHOUT ANY WARRANTY; without even the
  11. # implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  12. # See the License for more information.
  13. #=============================================================================
  14. # (To distribute this file outside of CMake, substitute the full
  15. # License text for the above reference.)
  16. #
  17. # Build the documentation ?
  18. #
  19. OPTION(BUILD_DOCUMENTATION "Build the documentation (Doxygen)." OFF)
  20. MARK_AS_ADVANCED(BUILD_DOCUMENTATION)
  21. IF (BUILD_DOCUMENTATION)
  22. #
  23. # Check for the tools
  24. #
  25. FIND_PACKAGE(UnixCommands)
  26. FIND_PACKAGE(Doxygen)
  27. FIND_PACKAGE(Gnuplot)
  28. FIND_PACKAGE(HTMLHelp)
  29. FIND_PACKAGE(Perl)
  30. FIND_PACKAGE(Wget)
  31. OPTION(DOCUMENTATION_HTML_HELP
  32. "Build the HTML Help file (CHM)." OFF)
  33. OPTION(DOCUMENTATION_HTML_TARZ
  34. "Build a compressed tar archive of the HTML doc." OFF)
  35. MARK_AS_ADVANCED(
  36. DOCUMENTATION_HTML_HELP
  37. DOCUMENTATION_HTML_TARZ
  38. )
  39. #
  40. # The documentation process is controled by a batch file.
  41. # We will probably need bash to create the custom target
  42. #
  43. ENDIF (BUILD_DOCUMENTATION)