FindASPELL.cmake 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. # - Try to find ASPELL
  2. # Once done this will define
  3. #
  4. # ASPELL_FOUND - system has ASPELL
  5. # ASPELL_EXECUTABLE - the ASPELL executable
  6. # ASPELL_INCLUDE_DIR - the ASPELL include directory
  7. # ASPELL_LIBRARIES - The libraries needed to use ASPELL
  8. # ASPELL_DEFINITIONS - Compiler switches required for using ASPELL
  9. #=============================================================================
  10. # Copyright 2006-2009 Kitware, Inc.
  11. # Copyright 2006 Alexander Neundorf <[email protected]>
  12. #
  13. # Distributed under the OSI-approved BSD License (the "License");
  14. # see accompanying file Copyright.txt for details.
  15. #
  16. # This software is distributed WITHOUT ANY WARRANTY; without even the
  17. # implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  18. # See the License for more information.
  19. #=============================================================================
  20. # (To distribute this file outside of CMake, substitute the full
  21. # License text for the above reference.)
  22. FIND_PATH(ASPELL_INCLUDE_DIR aspell.h )
  23. FIND_PROGRAM(ASPELL_EXECUTABLE
  24. NAMES aspell
  25. )
  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(${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake)
  30. FIND_PACKAGE_HANDLE_STANDARD_ARGS(ASPELL DEFAULT_MSG ASPELL_LIBRARIES ASPELL_INCLUDE_DIR ASPELL_EXECUTABLE)
  31. MARK_AS_ADVANCED(ASPELL_INCLUDE_DIR ASPELL_LIBRARIES ASPELL_EXECUTABLE)