FindASPELL.cmake 1.0 KB

1234567891011121314151617181920212223242526272829303132
  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. Try to find ASPELL
  7. Once done this will define
  8. ::
  9. ASPELL_FOUND - system has ASPELL
  10. ASPELL_EXECUTABLE - the ASPELL executable
  11. ASPELL_INCLUDE_DIR - the ASPELL include directory
  12. ASPELL_LIBRARIES - The libraries needed to use ASPELL
  13. ASPELL_DEFINITIONS - Compiler switches required for using ASPELL
  14. #]=======================================================================]
  15. find_path(ASPELL_INCLUDE_DIR aspell.h )
  16. find_program(ASPELL_EXECUTABLE
  17. NAMES aspell
  18. )
  19. find_library(ASPELL_LIBRARIES NAMES aspell aspell-15 libaspell-15 libaspell)
  20. include(${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake)
  21. FIND_PACKAGE_HANDLE_STANDARD_ARGS(ASPELL DEFAULT_MSG ASPELL_LIBRARIES ASPELL_INCLUDE_DIR ASPELL_EXECUTABLE)
  22. mark_as_advanced(ASPELL_INCLUDE_DIR ASPELL_LIBRARIES ASPELL_EXECUTABLE)