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
|
|
|
|
2009-09-28 15:45:50 +00:00
|
|
|
#=============================================================================
|
|
|
|
# Copyright 2006-2009 Kitware, Inc.
|
|
|
|
# Copyright 2006 Alexander Neundorf <neundorf@kde.org>
|
2006-09-19 20:11:53 +00:00
|
|
|
#
|
2009-09-28 15:45:50 +00:00
|
|
|
# Distributed under the OSI-approved BSD License (the "License");
|
|
|
|
# see accompanying file Copyright.txt for details.
|
|
|
|
#
|
|
|
|
# This software is distributed WITHOUT ANY WARRANTY; without even the
|
|
|
|
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
|
# See the License for more information.
|
|
|
|
#=============================================================================
|
2010-08-07 00:48:47 +00:00
|
|
|
# (To distribute this file outside of CMake, substitute the full
|
2009-09-28 15:45:50 +00:00
|
|
|
# License text for the above reference.)
|
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
|
|
|
|
2011-06-30 16:38:07 +00:00
|
|
|
# handle the QUIETLY and REQUIRED arguments and set ASPELL_FOUND to TRUE if
|
2007-07-19 13:00:51 +00:00
|
|
|
# all listed variables are TRUE
|
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)
|