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
52 ENDIF (BUILD_DOCUMENTATION)