TZIVI-254: IVI needs a newer version of cmake
[profile/ivi/cmake.git] / Modules / FindASPELL.cmake
1 # - Try to find ASPELL
2 # Once done this will define
3 #
4 #  ASPELL_FOUND - system has ASPELL
5 #  ASPELL_EXECUTABLE - the ASPELL executable
6 #  ASPELL_INCLUDE_DIR - the ASPELL include directory
7 #  ASPELL_LIBRARIES - The libraries needed to use ASPELL
8 #  ASPELL_DEFINITIONS - Compiler switches required for using ASPELL
9
10 #=============================================================================
11 # Copyright 2006-2009 Kitware, Inc.
12 # Copyright 2006 Alexander Neundorf <neundorf@kde.org>
13 #
14 # Distributed under the OSI-approved BSD License (the "License");
15 # see accompanying file Copyright.txt for details.
16 #
17 # This software is distributed WITHOUT ANY WARRANTY; without even the
18 # implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
19 # See the License for more information.
20 #=============================================================================
21 # (To distribute this file outside of CMake, substitute the full
22 #  License text for the above reference.)
23
24 FIND_PATH(ASPELL_INCLUDE_DIR aspell.h )
25
26 FIND_PROGRAM(ASPELL_EXECUTABLE
27   NAMES aspell
28 )
29
30 FIND_LIBRARY(ASPELL_LIBRARIES NAMES aspell aspell-15 libaspell-15 libaspell)
31
32 # handle the QUIETLY and REQUIRED arguments and set ASPELL_FOUND to TRUE if
33 # all listed variables are TRUE
34 INCLUDE(${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake)
35 FIND_PACKAGE_HANDLE_STANDARD_ARGS(ASPELL DEFAULT_MSG ASPELL_LIBRARIES ASPELL_INCLUDE_DIR ASPELL_EXECUTABLE)
36
37 MARK_AS_ADVANCED(ASPELL_INCLUDE_DIR ASPELL_LIBRARIES ASPELL_EXECUTABLE)