FindASPELL.cmake 1.0 KB

123456789101112131415161718192021222324252627282930
  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. # Copyright (c) 2006, Alexander Neundorf, <[email protected]>
  9. #
  10. # Redistribution and use is allowed according to the terms of the BSD license.
  11. # For details see the accompanying COPYING-CMAKE-SCRIPTS file.
  12. IF (ASPELL_INCLUDE_DIR AND ASPELL_LIBRARIES)
  13. # Already in cache, be silent
  14. SET(ASPELL_FIND_QUIETLY TRUE)
  15. ENDIF (ASPELL_INCLUDE_DIR AND ASPELL_LIBRARIES)
  16. FIND_PATH(ASPELL_INCLUDE_DIR aspell.h )
  17. FIND_LIBRARY(ASPELL_LIBRARIES NAMES aspell aspell-15 libaspell-15 libaspell)
  18. # handle the QUIETLY and REQUIRED arguments and set ASPELL_FOUND to TRUE if
  19. # all listed variables are TRUE
  20. INCLUDE(FindPackageHandleStandardArgs)
  21. FIND_PACKAGE_HANDLE_STANDARD_ARGS(ASPELL DEFAULT_MSG ASPELL_LIBRARIES ASPELL_INCLUDE_DIR)
  22. MARK_AS_ADVANCED(ASPELL_INCLUDE_DIR ASPELL_LIBRARIES)