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
|
|
|
|
2009-09-28 19:45:50 +04: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 04:48:47 +04:00
|
|
|
# (To distribute this file outside of CMake, substitute the full
|
2009-09-28 19:45:50 +04:00
|
|
|
# License text for the above reference.)
|
|
|
|
|
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()
|