FindHSPELL.cmake 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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. #=============================================================================
  9. # Copyright 2006-2009 Kitware, Inc.
  10. # Copyright 2006 Alexander Neundorf <[email protected]>
  11. #
  12. # Distributed under the OSI-approved BSD License (the "License");
  13. # see accompanying file Copyright.txt for details.
  14. #
  15. # This software is distributed WITHOUT ANY WARRANTY; without even the
  16. # implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  17. # See the License for more information.
  18. #=============================================================================
  19. # (To distributed this file outside of CMake, substitute the full
  20. # License text for the above reference.)
  21. IF (HSPELL_INCLUDE_DIR AND HSPELL_LIBRARIES)
  22. # Already in cache, be silent
  23. SET(HSPELL_FIND_QUIETLY TRUE)
  24. ENDIF (HSPELL_INCLUDE_DIR AND HSPELL_LIBRARIES)
  25. FIND_PATH(HSPELL_INCLUDE_DIR hspell.h )
  26. FIND_LIBRARY(HSPELL_LIBRARIES NAMES hspell )
  27. # handle the QUIETLY and REQUIRED arguments and set HSPELL_FOUND to TRUE if
  28. # all listed variables are TRUE
  29. INCLUDE(FindPackageHandleStandardArgs)
  30. FIND_PACKAGE_HANDLE_STANDARD_ARGS(HSPELL DEFAULT_MSG HSPELL_LIBRARIES HSPELL_INCLUDE_DIR)
  31. MARK_AS_ADVANCED(HSPELL_INCLUDE_DIR HSPELL_LIBRARIES)