view cmake/FindHunspell.cmake @ 632:337a805b9ce2

json_util: fix typo
author David Demelier <markand@malikania.fr>
date Tue, 20 Mar 2018 13:39:16 +0100
parents 01e01777ff50
children 5bd9424a523a
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)