FindASPELL.cmake 1.3 KB

1234567891011121314151617181920212223242526272829303132
  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 distribute this file outside of CMake, substitute the full
  20. # License text for the above reference.)
  21. FIND_PATH(ASPELL_INCLUDE_DIR aspell.h )
  22. FIND_LIBRARY(ASPELL_LIBRARIES NAMES aspell aspell-15 libaspell-15 libaspell)
  23. # handle the QUIETLY and REQUIRED arguments and set ASPELL_FOUND to TRUE if
  24. # all listed variables are TRUE
  25. INCLUDE(FindPackageHandleStandardArgs)
  26. FIND_PACKAGE_HANDLE_STANDARD_ARGS(ASPELL DEFAULT_MSG ASPELL_LIBRARIES ASPELL_INCLUDE_DIR)
  27. MARK_AS_ADVANCED(ASPELL_INCLUDE_DIR ASPELL_LIBRARIES)