2016-09-27 22:01:08 +03:00
|
|
|
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
|
|
|
# file Copyright.txt or https://cmake.org/licensing for details.
|
|
|
|
|
2013-10-15 19:17:36 +04:00
|
|
|
#.rst:
|
|
|
|
# FindHTMLHelp
|
|
|
|
# ------------
|
|
|
|
#
|
|
|
|
# This module looks for Microsoft HTML Help Compiler
|
|
|
|
#
|
2002-12-22 18:09:51 +03:00
|
|
|
# It defines:
|
|
|
|
#
|
2013-10-15 19:17:36 +04:00
|
|
|
# ::
|
|
|
|
#
|
|
|
|
# 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)
|
2002-12-22 18:09:51 +03:00
|
|
|
|
2012-08-13 21:47:32 +04:00
|
|
|
if(WIN32)
|
2002-12-22 18:09:51 +03:00
|
|
|
|
2012-08-13 21:47:32 +04:00
|
|
|
find_program(HTML_HELP_COMPILER
|
2002-12-22 18:09:51 +03:00
|
|
|
hhc
|
|
|
|
"[HKEY_CURRENT_USER\\Software\\Microsoft\\HTML Help Workshop;InstallDir]"
|
2006-02-28 18:27:30 +03:00
|
|
|
"$ENV{ProgramFiles}/HTML Help Workshop"
|
2012-08-13 21:42:58 +04:00
|
|
|
"C:/Program Files/HTML Help Workshop"
|
2003-08-08 19:59:07 +04:00
|
|
|
)
|
2002-12-22 18:09:51 +03:00
|
|
|
|
2012-08-13 21:47:32 +04:00
|
|
|
get_filename_component(HTML_HELP_COMPILER_PATH "${HTML_HELP_COMPILER}" PATH)
|
2002-12-22 18:09:51 +03:00
|
|
|
|
2012-08-13 21:47:32 +04:00
|
|
|
find_path(HTML_HELP_INCLUDE_PATH
|
2012-08-13 21:42:58 +04:00
|
|
|
htmlhelp.h
|
2002-12-22 18:09:51 +03:00
|
|
|
"${HTML_HELP_COMPILER_PATH}/include"
|
|
|
|
"[HKEY_CURRENT_USER\\Software\\Microsoft\\HTML Help Workshop;InstallDir]/include"
|
2006-02-28 18:27:30 +03:00
|
|
|
"$ENV{ProgramFiles}/HTML Help Workshop/include"
|
2012-08-13 21:42:58 +04:00
|
|
|
"C:/Program Files/HTML Help Workshop/include"
|
2003-08-08 19:59:07 +04:00
|
|
|
)
|
2002-12-22 18:09:51 +03:00
|
|
|
|
2012-08-13 21:47:32 +04:00
|
|
|
find_library(HTML_HELP_LIBRARY
|
2002-12-22 18:09:51 +03:00
|
|
|
htmlhelp
|
|
|
|
"${HTML_HELP_COMPILER_PATH}/lib"
|
|
|
|
"[HKEY_CURRENT_USER\\Software\\Microsoft\\HTML Help Workshop;InstallDir]/lib"
|
2006-02-28 18:27:30 +03:00
|
|
|
"$ENV{ProgramFiles}/HTML Help Workshop/lib"
|
2002-12-22 18:09:51 +03:00
|
|
|
"C:/Program Files/HTML Help Workshop/lib"
|
2003-08-08 19:59:07 +04:00
|
|
|
)
|
2002-12-22 18:09:51 +03:00
|
|
|
|
2012-08-13 21:47:32 +04:00
|
|
|
mark_as_advanced(
|
2002-12-22 18:09:51 +03:00
|
|
|
HTML_HELP_COMPILER
|
|
|
|
HTML_HELP_INCLUDE_PATH
|
2003-08-08 19:59:07 +04:00
|
|
|
HTML_HELP_LIBRARY
|
|
|
|
)
|
2002-12-22 18:09:51 +03:00
|
|
|
|
2012-08-13 21:50:14 +04:00
|
|
|
endif()
|