FindASPELL.cmake 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. # - Try to find ASPELL
  2. # Once done this will define
  3. #
  4. # ASPELL_FOUND - system has ASPELL
  5. # ASPELL_INCLUDE_DIR - the ASPELL include directory
  6. # ASPELL_LIBRARIES - The libraries needed to use ASPELL
  7. # ASPELL_DEFINITIONS - Compiler switches required for using ASPELL
  8. #=============================================================================
  9. # Copyright 2006-2009 Kitware, Inc.
  10. # Copyright 2006 Alexander Neundorf <[email protected]>
  11. #
  12. # Distributed under the OSI-approved BSD License (the "License");
  13. # see accompanying file Copyright.txt for details.
  14. #
  15. # This software is distributed WITHOUT ANY WARRANTY; without even the
  16. # implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  17. # See the License for more information.
  18. #=============================================================================
  19. # (To distributed this file outside of CMake, substitute the full
  20. # License text for the above reference.)
  21. IF (ASPELL_INCLUDE_DIR AND ASPELL_LIBRARIES)
  22. # Already in cache, be silent
  23. SET(ASPELL_FIND_QUIETLY TRUE)
  24. ENDIF (ASPELL_INCLUDE_DIR AND ASPELL_LIBRARIES)
  25. FIND_PATH(ASPELL_INCLUDE_DIR aspell.h )
  26. FIND_LIBRARY(ASPELL_LIBRARIES NAMES aspell aspell-15 libaspell-15 libaspell)
  27. # handle the QUIETLY and REQUIRED arguments and set ASPELL_FOUND to TRUE if
  28. # all listed variables are TRUE
  29. INCLUDE(FindPackageHandleStandardArgs)
  30. FIND_PACKAGE_HANDLE_STANDARD_ARGS(ASPELL DEFAULT_MSG ASPELL_LIBRARIES ASPELL_INCLUDE_DIR)
  31. MARK_AS_ADVANCED(ASPELL_INCLUDE_DIR ASPELL_LIBRARIES)