FindHTMLHelp.cmake 1.22 KB
Newer Older
1
# - This module looks for Microsoft HTML Help Compiler
2
# It defines:
3 4 5
#   HTML_HELP_COMPILER     : full path to the Compiler (hhc.exe)
#   HTML_HELP_INCLUDE_PATH : include path to the API (htmlhelp.h)
#   HTML_HELP_LIBRARY      : full path to the library (htmlhelp.lib)
6 7
#

Sebastien Barre's avatar
Sebastien Barre committed
8
IF(WIN32)
9

Sebastien Barre's avatar
Sebastien Barre committed
10
  FIND_PROGRAM(HTML_HELP_COMPILER
11 12
    hhc
    "[HKEY_CURRENT_USER\\Software\\Microsoft\\HTML Help Workshop;InstallDir]"
13
    "$ENV{ProgramFiles}/HTML Help Workshop"
14
    "C:/Program Files/HTML Help Workshop" 
15
    )
16

Sebastien Barre's avatar
Sebastien Barre committed
17
  GET_FILENAME_COMPONENT(HTML_HELP_COMPILER_PATH "${HTML_HELP_COMPILER}" PATH)
18

Sebastien Barre's avatar
Sebastien Barre committed
19
  FIND_PATH(HTML_HELP_INCLUDE_PATH 
20 21 22
    htmlhelp.h 
    "${HTML_HELP_COMPILER_PATH}/include"
    "[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
    )
26

Sebastien Barre's avatar
Sebastien Barre committed
27
  FIND_LIBRARY(HTML_HELP_LIBRARY 
28 29 30
    htmlhelp
    "${HTML_HELP_COMPILER_PATH}/lib"
    "[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
    )
34

Sebastien Barre's avatar
Sebastien Barre committed
35
  MARK_AS_ADVANCED(
36 37
    HTML_HELP_COMPILER
    HTML_HELP_INCLUDE_PATH
38 39
    HTML_HELP_LIBRARY
    )
40

Sebastien Barre's avatar
Sebastien Barre committed
41
ENDIF(WIN32)