FindASPELL.cmake 924 B

12345678910111213141516171819202122232425262728293031
  1. # Distributed under the OSI-approved BSD 3-Clause License. See accompanying
  2. # file Copyright.txt or https://cmake.org/licensing for details.
  3. #.rst:
  4. # FindASPELL
  5. # ----------
  6. #
  7. # Try to find ASPELL
  8. #
  9. # Once done this will define
  10. #
  11. # ::
  12. #
  13. # ASPELL_FOUND - system has ASPELL
  14. # ASPELL_EXECUTABLE - the ASPELL executable
  15. # ASPELL_INCLUDE_DIR - the ASPELL include directory
  16. # ASPELL_LIBRARIES - The libraries needed to use ASPELL
  17. # ASPELL_DEFINITIONS - Compiler switches required for using ASPELL
  18. find_path(ASPELL_INCLUDE_DIR aspell.h )
  19. find_program(ASPELL_EXECUTABLE
  20. NAMES aspell
  21. )
  22. find_library(ASPELL_LIBRARIES NAMES aspell aspell-15 libaspell-15 libaspell)
  23. include(${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake)
  24. FIND_PACKAGE_HANDLE_STANDARD_ARGS(ASPELL DEFAULT_MSG ASPELL_LIBRARIES ASPELL_INCLUDE_DIR ASPELL_EXECUTABLE)
  25. mark_as_advanced(ASPELL_INCLUDE_DIR ASPELL_LIBRARIES ASPELL_EXECUTABLE)