Documentation.cmake 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. # Distributed under the OSI-approved BSD 3-Clause License. See accompanying
  2. # file Copyright.txt or https://cmake.org/licensing for details.
  3. #[=======================================================================[.rst:
  4. Documentation
  5. -------------
  6. DocumentationVTK.cmake
  7. This file provides support for the VTK documentation framework. It
  8. relies on several tools (Doxygen, Perl, etc).
  9. #]=======================================================================]
  10. #
  11. # Build the documentation ?
  12. #
  13. option(BUILD_DOCUMENTATION "Build the documentation (Doxygen)." OFF)
  14. mark_as_advanced(BUILD_DOCUMENTATION)
  15. if (BUILD_DOCUMENTATION)
  16. #
  17. # Check for the tools
  18. #
  19. find_package(UnixCommands)
  20. find_package(Doxygen)
  21. find_package(Gnuplot)
  22. find_package(HTMLHelp)
  23. find_package(Perl)
  24. find_package(Wget)
  25. option(DOCUMENTATION_HTML_HELP
  26. "Build the HTML Help file (CHM)." OFF)
  27. option(DOCUMENTATION_HTML_TARZ
  28. "Build a compressed tar archive of the HTML doc." OFF)
  29. mark_as_advanced(
  30. DOCUMENTATION_HTML_HELP
  31. DOCUMENTATION_HTML_TARZ
  32. )
  33. #
  34. # The documentation process is controlled by a batch file.
  35. # We will probably need bash to create the custom target
  36. #
  37. endif ()