ENH: add support for g77 extra _ at the end of functions that have an _ in the name...
[cmake.git] / Modules / FindHTMLHelp.cmake
blobfaa35c4455d5c8de0f6c9c7a532d4c8ba2eefe3e
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)
8 IF(WIN32)
10   FIND_PROGRAM(HTML_HELP_COMPILER
11     hhc
12     "[HKEY_CURRENT_USER\\Software\\Microsoft\\HTML Help Workshop;InstallDir]"
13     "$ENV{ProgramFiles}/HTML Help Workshop"
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     "$ENV{ProgramFiles}/HTML Help Workshop/include"
24     "C:/Program Files/HTML Help Workshop/include" 
25     )
27   FIND_LIBRARY(HTML_HELP_LIBRARY 
28     htmlhelp
29     "${HTML_HELP_COMPILER_PATH}/lib"
30     "[HKEY_CURRENT_USER\\Software\\Microsoft\\HTML Help Workshop;InstallDir]/lib"
31     "$ENV{ProgramFiles}/HTML Help Workshop/lib"
32     "C:/Program Files/HTML Help Workshop/lib"
33     )
35   MARK_AS_ADVANCED(
36     HTML_HELP_COMPILER
37     HTML_HELP_INCLUDE_PATH
38     HTML_HELP_LIBRARY
39     )
41 ENDIF(WIN32)