Initial commit.
[CMakeLuaTailorHgBridge.git] / CMakeLua / Modules / FindASPELL.cmake
blobd43ea9d8e2810d766b3ce6e0e827c69e2e684c68
1 # - Try to find ASPELL
2 # Once done this will define
4 #  ASPELL_FOUND - system has ASPELL
5 #  ASPELL_INCLUDE_DIR - the ASPELL include directory
6 #  ASPELL_LIBRARIES - The libraries needed to use ASPELL
7 #  ASPELL_DEFINITIONS - Compiler switches required for using ASPELL
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 (ASPELL_INCLUDE_DIR AND ASPELL_LIBRARIES)
16   # Already in cache, be silent
17   SET(ASPELL_FIND_QUIETLY TRUE)
18 ENDIF (ASPELL_INCLUDE_DIR AND ASPELL_LIBRARIES)
20 FIND_PATH(ASPELL_INCLUDE_DIR aspell.h )
22 FIND_LIBRARY(ASPELL_LIBRARIES NAMES aspell aspell-15 libaspell-15 libaspell)
24 # handle the QUIETLY and REQUIRED arguments and set ASPELL_FOUND to TRUE if 
25 # all listed variables are TRUE
26 INCLUDE(FindPackageHandleStandardArgs)
27 FIND_PACKAGE_HANDLE_STANDARD_ARGS(ASPELL DEFAULT_MSG ASPELL_LIBRARIES ASPELL_INCLUDE_DIR)
30 MARK_AS_ADVANCED(ASPELL_INCLUDE_DIR ASPELL_LIBRARIES)