view cmake/FindHunspell.cmake @ 672:c49478852aaf

buf: now separate library
author David Demelier <markand@malikania.fr>
date Thu, 24 Mar 2022 07:29:36 +0100
parents 5bd9424a523a
children
line wrap: on
line source

# FindHunspell
# ------------
#
# Find Hunspell library, this modules defines:
#
# Hunspell_INCLUDE_DIRS, where to find hunspell.hxx
# Hunspell_LIBRARIES, where to find library
# Hunspell_FOUND, if it is found

find_path(
	Hunspell_INCLUDE_DIR
	NAMES hunspell.hxx
	PATH_SUFFIXES hunspell
)
find_library(Hunspell_LIBRARY NAMES libhunspell hunspell)

include(FindPackageHandleStandardArgs)

find_package_handle_standard_args(
	Hunspell
	FOUND_VAR Hunspell_FOUND
	REQUIRED_VARS Hunspell_LIBRARY Hunspell_INCLUDE_DIR
)

set(Hunspell_LIBRARIES ${Hunspell_LIBRARY})
set(Hunspell_INCLUDE_DIRS ${Hunspell_INCLUDE_DIR})

mark_as_advanced(Hunspell_INCLUDE_DIR Hunspell_LIBRARY)