FindHSPELL.cmake 1017 B

1234567891011121314151617181920212223242526272829303132
  1. # - Try to find HSPELL
  2. # Once done this will define
  3. #
  4. # HSPELL_FOUND - system has HSPELL
  5. # HSPELL_INCLUDE_DIR - the HSPELL include directory
  6. # HSPELL_LIBRARIES - The libraries needed to use HSPELL
  7. # HSPELL_DEFINITIONS - Compiler switches required for using HSPELL
  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 (HSPELL_INCLUDE_DIR AND HSPELL_LIBRARIES)
  13. # Already in cache, be silent
  14. SET(HSPELL_FIND_QUIETLY TRUE)
  15. ENDIF (HSPELL_INCLUDE_DIR AND HSPELL_LIBRARIES)
  16. FIND_PATH(HSPELL_INCLUDE_DIR hspell.h )
  17. FIND_LIBRARY(HSPELL_LIBRARIES NAMES hspell )
  18. # handle the QUIETLY and REQUIRED arguments and set HSPELL_FOUND to TRUE if
  19. # all listed variables are TRUE
  20. INCLUDE(FindPackageHandleStandardArgs)
  21. FIND_PACKAGE_HANDLE_STANDARD_ARGS(HSPELL DEFAULT_MSG HSPELL_LIBRARIES HSPELL_INCLUDE_DIR)
  22. MARK_AS_ADVANCED(HSPELL_INCLUDE_DIR HSPELL_LIBRARIES)