2 # Once done this will define
4 # HSPELL_FOUND - system has HSPELL
5 # HSPELL_INCLUDE_DIR - the HSPELL include directory
6 # HSPELL_LIBRARIES - The libraries needed to use HSPELL
7 # HSPELL_DEFINITIONS - Compiler switches required for using HSPELL
9 # Copyright (c) 2006, Alexander Neundorf, <neundorf@kde.org>
11 # Redistribution and use is allowed according to the terms of the BSD license.
12 # For details see the accompanying COPYING-CMAKE-SCRIPTS file.
15 IF (HSPELL_INCLUDE_DIR AND HSPELL_LIBRARIES)
16 # Already in cache, be silent
17 SET(HSPELL_FIND_QUIETLY TRUE)
18 ENDIF (HSPELL_INCLUDE_DIR AND HSPELL_LIBRARIES)
21 FIND_PATH(HSPELL_INCLUDE_DIR hspell.h )
23 FIND_LIBRARY(HSPELL_LIBRARIES NAMES hspell )
25 # handle the QUIETLY and REQUIRED arguments and set HSPELL_FOUND to TRUE if
26 # all listed variables are TRUE
27 INCLUDE(FindPackageHandleStandardArgs)
28 FIND_PACKAGE_HANDLE_STANDARD_ARGS(HSPELL DEFAULT_MSG HSPELL_LIBRARIES HSPELL_INCLUDE_DIR)
31 MARK_AS_ADVANCED(HSPELL_INCLUDE_DIR HSPELL_LIBRARIES)