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