cmake/Modules/FindHTMLHelp.cmake

53 lines
1.4 KiB
CMake
Raw Normal View History

2016-10-30 18:24:19 +01:00
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
# file Copyright.txt or https://cmake.org/licensing for details.
2019-11-11 23:01:05 +01:00
#[=======================================================================[.rst:
FindHTMLHelp
------------
This module looks for Microsoft HTML Help Compiler
It defines:
::
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)
#]=======================================================================]
2013-03-16 19:13:01 +02:00
if(WIN32)
2013-03-16 19:13:01 +02:00
find_program(HTML_HELP_COMPILER
2018-01-26 17:06:56 +01:00
NAMES hhc
PATHS
"[HKEY_CURRENT_USER\\Software\\Microsoft\\HTML Help Workshop;InstallDir]"
PATH_SUFFIXES "HTML Help Workshop"
)
2013-03-16 19:13:01 +02:00
get_filename_component(HTML_HELP_COMPILER_PATH "${HTML_HELP_COMPILER}" PATH)
2013-03-16 19:13:01 +02:00
find_path(HTML_HELP_INCLUDE_PATH
2018-01-26 17:06:56 +01:00
NAMES htmlhelp.h
PATHS
"${HTML_HELP_COMPILER_PATH}/include"
"[HKEY_CURRENT_USER\\Software\\Microsoft\\HTML Help Workshop;InstallDir]/include"
PATH_SUFFIXES "HTML Help Workshop/include"
)
2013-03-16 19:13:01 +02:00
find_library(HTML_HELP_LIBRARY
2018-01-26 17:06:56 +01:00
NAMES htmlhelp
PATHS
"${HTML_HELP_COMPILER_PATH}/lib"
"[HKEY_CURRENT_USER\\Software\\Microsoft\\HTML Help Workshop;InstallDir]/lib"
PATH_SUFFIXES "HTML Help Workshop/lib"
)
2013-03-16 19:13:01 +02:00
mark_as_advanced(
HTML_HELP_COMPILER
HTML_HELP_INCLUDE_PATH
HTML_HELP_LIBRARY
)
2013-03-16 19:13:01 +02:00
endif()