1
0

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 ()