STYLE: Nightly Version update
[cmake.git] / Modules / FindHTMLHelp.cmake
blobcf70330a1abcf18347e4d786a558d327ddc954a3
1
2 # This module looks for Microsoft HTML Help Compiler
3 # It defines:
4 #   HTML_HELP_COMPILER     : full path to the HTML Help Compiler (hhc.exe)
5 #   HTML_HELP_INCLUDE_PATH : include path to the HTML Help API (htmlhelp.h)
6 #         HTML_HELP_LIBRARY      : full path to the HTML Help library (htmlhelp.lib)
9 IF (WIN32)
11   FIND_PROGRAM (HTML_HELP_COMPILER
12     hhc
13     "[HKEY_CURRENT_USER\\Software\\Microsoft\\HTML Help Workshop;InstallDir]"
14     "C:/Program Files/HTML Help Workshop" 
15     )
17   GET_FILENAME_COMPONENT (HTML_HELP_COMPILER_PATH ${HTML_HELP_COMPILER} PATH)
19   FIND_PATH (HTML_HELP_INCLUDE_PATH 
20     htmlhelp.h 
21     "${HTML_HELP_COMPILER_PATH}/include"
22     "[HKEY_CURRENT_USER\\Software\\Microsoft\\HTML Help Workshop;InstallDir]/include"
23     "C:/Program Files/HTML Help Workshop/include" 
24     )
26   FIND_LIBRARY (HTML_HELP_LIBRARY 
27     htmlhelp
28     "${HTML_HELP_COMPILER_PATH}/lib"
29     "[HKEY_CURRENT_USER\\Software\\Microsoft\\HTML Help Workshop;InstallDir]/lib"
30     "C:/Program Files/HTML Help Workshop/lib"
31     )
33   MARK_AS_ADVANCED (
34     HTML_HELP_COMPILER
35     HTML_HELP_INCLUDE_PATH
36     HTML_HELP_LIBRARY
37     )
39 ENDIF (WIN32)