Subversion Repositories Scribus

Rev

Rev 21400 | Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
17429 craig 1
# - Try to find HUNSPELL
2
# Once done this will define
3
#
4
#  HUNSPELL_FOUND - System has HUNSPELL
5
#  HUNSPELL_INCLUDE_DIR - The HUNSPELL include directory
6
#  HUNSPELL_LIBRARIES - The libraries needed to use HUNSPELL
7
#  HUNSPELL_DEFINITIONS - Compiler switches required for using HUNSPELL
8
 
9
#Based on examples at http://www.vtk.org/Wiki/CMake:How_To_Find_Libraries
10
 
11
FIND_PATH(HUNSPELL_INCLUDE_DIR hunspell/hunspell.hxx )
12
FIND_LIBRARY(HUNSPELL_LIBRARIES NAMES hunspell-1.3 hunspell-1.2 PATHS /opt/local/lib /usr/local/lib /usr/lib )
13
 
14
INCLUDE(FindPackageHandleStandardArgs)
15
# handle the QUIETLY and REQUIRED arguments and set HUNSPELL_FOUND to TRUE
16
# if all listed variables are TRUE
17
 
18
#FIND_PACKAGE(HUNSPELL QUIET NO_MODULE HINTS /opt/local/bin/hunspell)
19
#FIND_PACKAGE_HANDLE_STANDARD_ARGS(HUNSPELL  CONFIG_MODE)
20
 
21
FIND_PACKAGE_HANDLE_STANDARD_ARGS(HUNSPELL DEFAULT_MSG HUNSPELL_LIBRARIES HUNSPELL_INCLUDE_DIR )
22
 
23
MARK_AS_ADVANCED(HUNSPELL_INCLUDE_DIR HUNSPELL_LIBRARIES)