1# Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
2# file Copyright.txt or https://cmake.org/licensing for details.
3
4#[=======================================================================[.rst:
5FindASPELL
6----------
7
8Try to find ASPELL
9
10Once done this will define
11
12::
13
14  ASPELL_FOUND - system has ASPELL
15  ASPELL_EXECUTABLE - the ASPELL executable
16  ASPELL_INCLUDE_DIR - the ASPELL include directory
17  ASPELL_LIBRARIES - The libraries needed to use ASPELL
18  ASPELL_DEFINITIONS - Compiler switches required for using ASPELL
19#]=======================================================================]
20
21find_path(ASPELL_INCLUDE_DIR aspell.h )
22
23find_program(ASPELL_EXECUTABLE
24  NAMES aspell
25)
26
27find_library(ASPELL_LIBRARIES NAMES aspell aspell-15 libaspell-15 libaspell)
28
29include(${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake)
30FIND_PACKAGE_HANDLE_STANDARD_ARGS(ASPELL DEFAULT_MSG ASPELL_LIBRARIES ASPELL_INCLUDE_DIR ASPELL_EXECUTABLE)
31
32mark_as_advanced(ASPELL_INCLUDE_DIR ASPELL_LIBRARIES ASPELL_EXECUTABLE)
33