2010-07-18 06:47:01 +00:00
|
|
|
|
|
|
|
if(WIN32)
|
|
|
|
find_library(HUNSPELL_LIBRARY "libhunspell")
|
|
|
|
else()
|
2011-05-24 06:58:40 +00:00
|
|
|
find_library(HUNSPELL_LIBRARY NAMES "hunspell" "hunspell-1.2" PATHS "/usr/local/lib" ${SYSTEM_LIB_DIRS} "/usr/lib64")
|
2010-07-18 06:47:01 +00:00
|
|
|
endif()
|
|
|
|
|
|
|
|
FIND_PATH(HUNSPELL_INCLUDE_DIR "hunspell/hunspell.hxx")
|
|
|
|
|
2014-05-13 10:30:20 +00:00
|
|
|
# handle the QUIETLY and REQUIRED arguments and
|
2010-07-18 06:47:01 +00:00
|
|
|
# set HUNSPELL_FOUND to TRUE if all listed variables are TRUE
|
|
|
|
include(FindPackageHandleStandardArgs)
|
|
|
|
find_package_handle_standard_args(HUNSPELL DEFAULT_MSG HUNSPELL_LIBRARY HUNSPELL_INCLUDE_DIR)
|
|
|
|
|
|
|
|
mark_as_advanced(HUNSPELL_LIBRARY HUNSPELL_INCLUDE_DIR)
|