Initial commit.
[CMakeLuaTailorHgBridge.git] / CMakeLua / Modules / FindHSPELL.cmake
blobfa5c27559a52cc941c89ef13ad55b01f36b55033
1 # - Try to find HSPELL
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)