1 # Distributed under the OSI-approved BSD 3-Clause License. See accompanying
2 # file Copyright.txt or https://cmake.org/licensing for details.
4 #[=======================================================================[.rst:
8 This module looks for Microsoft HTML Help Compiler
14 HTML_HELP_COMPILER : full path to the Compiler (hhc.exe)
15 HTML_HELP_INCLUDE_PATH : include path to the API (htmlhelp.h)
16 HTML_HELP_LIBRARY : full path to the library (htmlhelp.lib)
17 #]=======================================================================]
21 find_program(HTML_HELP_COMPILER
24 "[HKEY_CURRENT_USER\\Software\\Microsoft\\HTML Help Workshop;InstallDir]"
25 PATH_SUFFIXES "HTML Help Workshop"
28 get_filename_component(HTML_HELP_COMPILER_PATH "${HTML_HELP_COMPILER}" PATH)
30 find_path(HTML_HELP_INCLUDE_PATH
33 "${HTML_HELP_COMPILER_PATH}/include"
34 "[HKEY_CURRENT_USER\\Software\\Microsoft\\HTML Help Workshop;InstallDir]/include"
35 PATH_SUFFIXES "HTML Help Workshop/include"
38 find_library(HTML_HELP_LIBRARY
41 "${HTML_HELP_COMPILER_PATH}/lib"
42 "[HKEY_CURRENT_USER\\Software\\Microsoft\\HTML Help Workshop;InstallDir]/lib"
43 PATH_SUFFIXES "HTML Help Workshop/lib"
48 HTML_HELP_INCLUDE_PATH