Documentation.cmake 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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. This module provides support for the VTK documentation framework. It
  7. relies on several tools (Doxygen, Perl, etc).
  8. #]=======================================================================]
  9. #
  10. # Build the documentation ?
  11. #
  12. option(BUILD_DOCUMENTATION "Build the documentation (Doxygen)." OFF)
  13. mark_as_advanced(BUILD_DOCUMENTATION)
  14. if (BUILD_DOCUMENTATION)
  15. #
  16. # Check for the tools
  17. #
  18. find_package(UnixCommands)
  19. find_package(Doxygen)
  20. find_package(Gnuplot)
  21. find_package(HTMLHelp)
  22. find_package(Perl)
  23. find_package(Wget)
  24. option(DOCUMENTATION_HTML_HELP
  25. "Build the HTML Help file (CHM)." OFF)
  26. option(DOCUMENTATION_HTML_TARZ
  27. "Build a compressed tar archive of the HTML doc." OFF)
  28. mark_as_advanced(
  29. DOCUMENTATION_HTML_HELP
  30. DOCUMENTATION_HTML_TARZ
  31. )
  32. #
  33. # The documentation process is controlled by a batch file.
  34. # We will probably need bash to create the custom target
  35. #
  36. endif ()