1 # - DocumentationVTK.cmake
2 # This file provides support for the VTK documentation framework.
3 # It relies on several tools (Doxygen, Perl, etc).
5 #=============================================================================
6 # Copyright 2001-2009 Kitware, Inc.
8 # Distributed under the OSI-approved BSD License (the "License");
9 # see accompanying file Copyright.txt for details.
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.)
19 # Build the documentation ?
21 option(BUILD_DOCUMENTATION "Build the documentation (Doxygen)." OFF)
22 mark_as_advanced(BUILD_DOCUMENTATION)
24 if (BUILD_DOCUMENTATION)
29 find_package(UnixCommands)
32 find_package(HTMLHelp)
36 option(DOCUMENTATION_HTML_HELP
37 "Build the HTML Help file (CHM)." OFF)
39 option(DOCUMENTATION_HTML_TARZ
40 "Build a compressed tar archive of the HTML doc." OFF)
43 DOCUMENTATION_HTML_HELP
44 DOCUMENTATION_HTML_TARZ
48 # The documentation process is controled by a batch file.
49 # We will probably need bash to create the custom target