2016-09-27 19:01:08 +00:00
|
|
|
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
|
|
|
# file Copyright.txt or https://cmake.org/licensing for details.
|
|
|
|
|
2013-10-15 15:17:36 +00:00
|
|
|
#.rst:
|
|
|
|
# FindASPELL
|
|
|
|
# ----------
|
|
|
|
#
|
|
|
|
# Try to find ASPELL
|
|
|
|
#
|
2006-09-19 20:11:53 +00:00
|
|
|
# Once done this will define
|
|
|
|
#
|
2013-10-15 15:17:36 +00: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
|
2006-09-19 20:11:53 +00:00
|
|
|
|
2012-08-13 17:47:32 +00:00
|
|
|
find_path(ASPELL_INCLUDE_DIR aspell.h )
|
2006-09-19 20:11:53 +00:00
|
|
|
|
2012-08-13 17:47:32 +00:00
|
|
|
find_program(ASPELL_EXECUTABLE
|
2011-06-30 16:38:07 +00:00
|
|
|
NAMES aspell
|
|
|
|
)
|
|
|
|
|
2012-08-13 17:47:32 +00:00
|
|
|
find_library(ASPELL_LIBRARIES NAMES aspell aspell-15 libaspell-15 libaspell)
|
2006-09-19 20:11:53 +00:00
|
|
|
|
2012-08-13 17:47:32 +00:00
|
|
|
include(${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake)
|
2011-06-30 16:38:07 +00:00
|
|
|
FIND_PACKAGE_HANDLE_STANDARD_ARGS(ASPELL DEFAULT_MSG ASPELL_LIBRARIES ASPELL_INCLUDE_DIR ASPELL_EXECUTABLE)
|
2006-09-19 20:11:53 +00:00
|
|
|
|
2012-08-13 17:47:32 +00:00
|
|
|
mark_as_advanced(ASPELL_INCLUDE_DIR ASPELL_LIBRARIES ASPELL_EXECUTABLE)
|