Imported Upstream version 2.8.10.2
[platform/upstream/cmake.git] / Modules / FindHTMLHelp.cmake
1 # - This module looks for Microsoft HTML Help Compiler
2 # It defines:
3 #   HTML_HELP_COMPILER     : full path to the Compiler (hhc.exe)
4 #   HTML_HELP_INCLUDE_PATH : include path to the API (htmlhelp.h)
5 #   HTML_HELP_LIBRARY      : full path to the library (htmlhelp.lib)
6 #
7
8 #=============================================================================
9 # Copyright 2002-2009 Kitware, Inc.
10 #
11 # Distributed under the OSI-approved BSD License (the "License");
12 # see accompanying file Copyright.txt for details.
13 #
14 # This software is distributed WITHOUT ANY WARRANTY; without even the
15 # implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16 # See the License for more information.
17 #=============================================================================
18 # (To distribute this file outside of CMake, substitute the full
19 #  License text for the above reference.)
20
21 if(WIN32)
22
23   find_program(HTML_HELP_COMPILER
24     hhc
25     "[HKEY_CURRENT_USER\\Software\\Microsoft\\HTML Help Workshop;InstallDir]"
26     "$ENV{ProgramFiles}/HTML Help Workshop"
27     "C:/Program Files/HTML Help Workshop"
28     )
29
30   get_filename_component(HTML_HELP_COMPILER_PATH "${HTML_HELP_COMPILER}" PATH)
31
32   find_path(HTML_HELP_INCLUDE_PATH
33     htmlhelp.h
34     "${HTML_HELP_COMPILER_PATH}/include"
35     "[HKEY_CURRENT_USER\\Software\\Microsoft\\HTML Help Workshop;InstallDir]/include"
36     "$ENV{ProgramFiles}/HTML Help Workshop/include"
37     "C:/Program Files/HTML Help Workshop/include"
38     )
39
40   find_library(HTML_HELP_LIBRARY
41     htmlhelp
42     "${HTML_HELP_COMPILER_PATH}/lib"
43     "[HKEY_CURRENT_USER\\Software\\Microsoft\\HTML Help Workshop;InstallDir]/lib"
44     "$ENV{ProgramFiles}/HTML Help Workshop/lib"
45     "C:/Program Files/HTML Help Workshop/lib"
46     )
47
48   mark_as_advanced(
49     HTML_HELP_COMPILER
50     HTML_HELP_INCLUDE_PATH
51     HTML_HELP_LIBRARY
52     )
53
54 endif()