2013-10-15 15:17:36 +00:00
|
|
|
#.rst:
|
|
|
|
# FindHTMLHelp
|
|
|
|
# ------------
|
|
|
|
#
|
|
|
|
# This module looks for Microsoft HTML Help Compiler
|
|
|
|
#
|
2002-12-22 15:09:51 +00:00
|
|
|
# It defines:
|
|
|
|
#
|
2013-10-15 15:17:36 +00: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 15:09:51 +00:00
|
|
|
|
2009-09-28 15:45:50 +00:00
|
|
|
#=============================================================================
|
|
|
|
# Copyright 2002-2009 Kitware, Inc.
|
|
|
|
#
|
|
|
|
# Distributed under the OSI-approved BSD License (the "License");
|
|
|
|
# see accompanying file Copyright.txt for details.
|
|
|
|
#
|
|
|
|
# This software is distributed WITHOUT ANY WARRANTY; without even the
|
|
|
|
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
|
# See the License for more information.
|
|
|
|
#=============================================================================
|
2010-08-07 00:48:47 +00:00
|
|
|
# (To distribute this file outside of CMake, substitute the full
|
2009-09-28 15:45:50 +00:00
|
|
|
# License text for the above reference.)
|
|
|
|
|
2012-08-13 17:47:32 +00:00
|
|
|
if(WIN32)
|
2002-12-22 15:09:51 +00:00
|
|
|
|
2012-08-13 17:47:32 +00:00
|
|
|
find_program(HTML_HELP_COMPILER
|
2002-12-22 15:09:51 +00:00
|
|
|
hhc
|
|
|
|
"[HKEY_CURRENT_USER\\Software\\Microsoft\\HTML Help Workshop;InstallDir]"
|
2006-02-28 15:27:30 +00:00
|
|
|
"$ENV{ProgramFiles}/HTML Help Workshop"
|
2012-08-13 17:42:58 +00:00
|
|
|
"C:/Program Files/HTML Help Workshop"
|
2003-08-08 15:59:07 +00:00
|
|
|
)
|
2002-12-22 15:09:51 +00:00
|
|
|
|
2012-08-13 17:47:32 +00:00
|
|
|
get_filename_component(HTML_HELP_COMPILER_PATH "${HTML_HELP_COMPILER}" PATH)
|
2002-12-22 15:09:51 +00:00
|
|
|
|
2012-08-13 17:47:32 +00:00
|
|
|
find_path(HTML_HELP_INCLUDE_PATH
|
2012-08-13 17:42:58 +00:00
|
|
|
htmlhelp.h
|
2002-12-22 15:09:51 +00:00
|
|
|
"${HTML_HELP_COMPILER_PATH}/include"
|
|
|
|
"[HKEY_CURRENT_USER\\Software\\Microsoft\\HTML Help Workshop;InstallDir]/include"
|
2006-02-28 15:27:30 +00:00
|
|
|
"$ENV{ProgramFiles}/HTML Help Workshop/include"
|
2012-08-13 17:42:58 +00:00
|
|
|
"C:/Program Files/HTML Help Workshop/include"
|
2003-08-08 15:59:07 +00:00
|
|
|
)
|
2002-12-22 15:09:51 +00:00
|
|
|
|
2012-08-13 17:47:32 +00:00
|
|
|
find_library(HTML_HELP_LIBRARY
|
2002-12-22 15:09:51 +00:00
|
|
|
htmlhelp
|
|
|
|
"${HTML_HELP_COMPILER_PATH}/lib"
|
|
|
|
"[HKEY_CURRENT_USER\\Software\\Microsoft\\HTML Help Workshop;InstallDir]/lib"
|
2006-02-28 15:27:30 +00:00
|
|
|
"$ENV{ProgramFiles}/HTML Help Workshop/lib"
|
2002-12-22 15:09:51 +00:00
|
|
|
"C:/Program Files/HTML Help Workshop/lib"
|
2003-08-08 15:59:07 +00:00
|
|
|
)
|
2002-12-22 15:09:51 +00:00
|
|
|
|
2012-08-13 17:47:32 +00:00
|
|
|
mark_as_advanced(
|
2002-12-22 15:09:51 +00:00
|
|
|
HTML_HELP_COMPILER
|
|
|
|
HTML_HELP_INCLUDE_PATH
|
2003-08-08 15:59:07 +00:00
|
|
|
HTML_HELP_LIBRARY
|
|
|
|
)
|
2002-12-22 15:09:51 +00:00
|
|
|
|
2012-08-13 17:50:14 +00:00
|
|
|
endif()
|