1
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
2
# file Copyright.txt or https://cmake.org/licensing for details.
4
# Modified from the original CMake 3.18 module by the Widelands Development Team.
6
#[=======================================================================[.rst:
10
This module provides support for the VTK documentation framework. It
11
relies on several tools (Doxygen, Perl, etc).
12
#]=======================================================================]
15
# Build the documentation ?
17
option(BUILD_DOCUMENTATION "Build the documentation (Doxygen)." OFF)
18
mark_as_advanced(BUILD_DOCUMENTATION)
20
if (BUILD_DOCUMENTATION)
25
find_package(UnixCommands)
28
find_package(HTMLHelp)
32
option(DOCUMENTATION_HTML_HELP
33
"Build the HTML Help file (CHM)." OFF)
35
option(DOCUMENTATION_HTML_TARZ
36
"Build a compressed tar archive of the HTML doc." OFF)
39
DOCUMENTATION_HTML_HELP
40
DOCUMENTATION_HTML_TARZ
44
# The documentation process is controlled by a batch file.
45
# We will probably need bash to create the custom target
48
endif (BUILD_DOCUMENTATION)