2016-09-27 22:01:08 +03: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 19:17:36 +04:00
|
|
|
#.rst:
|
|
|
|
# FindASPELL
|
|
|
|
# ----------
|
|
|
|
#
|
|
|
|
# Try to find ASPELL
|
|
|
|
#
|
2006-09-20 00:11:53 +04:00
|
|
|
# Once done this will define
|
|
|
|
#
|
2013-10-15 19:17:36 +04: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-20 00:11:53 +04:00
|
|
|
|
2012-08-13 21:47:32 +04:00
|
|
|
find_path(ASPELL_INCLUDE_DIR aspell.h )
|
2006-09-20 00:11:53 +04:00
|
|
|
|
2012-08-13 21:47:32 +04:00
|
|
|
find_program(ASPELL_EXECUTABLE
|
2011-06-30 20:38:07 +04:00
|
|
|
NAMES aspell
|
|
|
|
)
|
|
|
|
|
2012-08-13 21:47:32 +04:00
|
|
|
find_library(ASPELL_LIBRARIES NAMES aspell aspell-15 libaspell-15 libaspell)
|
2006-09-20 00:11:53 +04:00
|
|
|
|
2011-06-30 20:38:07 +04:00
|
|
|
# handle the QUIETLY and REQUIRED arguments and set ASPELL_FOUND to TRUE if
|
2007-07-19 17:00:51 +04:00
|
|
|
# all listed variables are TRUE
|
2012-08-13 21:47:32 +04:00
|
|
|
include(${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake)
|
2011-06-30 20:38:07 +04:00
|
|
|
FIND_PACKAGE_HANDLE_STANDARD_ARGS(ASPELL DEFAULT_MSG ASPELL_LIBRARIES ASPELL_INCLUDE_DIR ASPELL_EXECUTABLE)
|
2006-09-20 00:11:53 +04:00
|
|
|
|
2012-08-13 21:47:32 +04:00
|
|
|
mark_as_advanced(ASPELL_INCLUDE_DIR ASPELL_LIBRARIES ASPELL_EXECUTABLE)
|