cmake/Modules/FindASPELL.cmake

32 lines
924 B
CMake
Raw Normal View History

2016-10-30 18:24:19 +01:00
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
# file Copyright.txt or https://cmake.org/licensing for details.
2014-08-03 19:52:23 +02:00
#.rst:
# FindASPELL
# ----------
#
# Try to find ASPELL
#
# Once done this will define
#
2014-08-03 19:52:23 +02:00
# ::
#
# ASPELL_FOUND - system has ASPELL
# ASPELL_EXECUTABLE - the ASPELL executable
# ASPELL_INCLUDE_DIR - the ASPELL include directory
# ASPELL_LIBRARIES - The libraries needed to use ASPELL
# ASPELL_DEFINITIONS - Compiler switches required for using ASPELL
2013-03-16 19:13:01 +02:00
find_path(ASPELL_INCLUDE_DIR aspell.h )
2013-03-16 19:13:01 +02:00
find_program(ASPELL_EXECUTABLE
2012-02-18 12:40:36 +02:00
NAMES aspell
)
2013-03-16 19:13:01 +02:00
find_library(ASPELL_LIBRARIES NAMES aspell aspell-15 libaspell-15 libaspell)
2013-03-16 19:13:01 +02:00
include(${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake)
2012-02-18 12:40:36 +02:00
FIND_PACKAGE_HANDLE_STANDARD_ARGS(ASPELL DEFAULT_MSG ASPELL_LIBRARIES ASPELL_INCLUDE_DIR ASPELL_EXECUTABLE)
2013-03-16 19:13:01 +02:00
mark_as_advanced(ASPELL_INCLUDE_DIR ASPELL_LIBRARIES ASPELL_EXECUTABLE)