FindMilter.cmake 682 B

12345678910111213141516171819202122232425262728293031323334
  1. # - Try to find Milter lib
  2. #
  3. # The following variables are defined
  4. #
  5. # Milter_FOUND - system has Milter lib
  6. # Milter_INCLUDE_DIR - the Milter include directory
  7. # Milter_LIBRARY - the Milter library
  8. find_path(Milter_INCLUDE_DIR libmilter/mfapi.h
  9. /usr/local/include
  10. /usr/include
  11. /opt/local/include
  12. /sw/local/include
  13. /sw/include
  14. NO_DEFAULT_PATH
  15. )
  16. find_library(Milter_LIBRARY
  17. NAMES "milter"
  18. PATHS
  19. ~/Library/Frameworks
  20. /Library/Frameworks
  21. /usr/local/lib
  22. /usr/local/lib64
  23. /usr/lib
  24. /usr/lib64
  25. /opt/local/lib
  26. /sw/local/lib
  27. /sw/lib
  28. )
  29. set(Milter_FOUND FALSE)
  30. if(Milter_INCLUDE_DIR AND Milter_LIBRARY)
  31. set(Milter_FOUND TRUE)
  32. endif(Milter_INCLUDE_DIR AND Milter_LIBRARY)