FindPhysFS.cmake 959 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. # Locate PhysFS library
  2. # This module defines
  3. # PHYSFS_LIBRARY, the name of the library to link against
  4. # PHYSFS_FOUND, if false, do not try to link to PHYSFS
  5. # PHYSFS_INCLUDE_DIR, where to find physfs.h
  6. #
  7. # $PHYSFSDIR is an environment variable that would
  8. # correspond to the ./configure --prefix=$PHYSFSDIR
  9. # used in building PHYSFS.
  10. #
  11. # Created by Eric Wing.
  12. FIND_PATH(PHYSFS_INCLUDE_DIR physfs.h
  13. HINTS
  14. $ENV{PHYSFSDIR}
  15. PATH_SUFFIXES include/physfs include
  16. PATHS
  17. ~/Library/Frameworks
  18. /Library/Frameworks
  19. /usr/local
  20. /usr
  21. /sw # Fink
  22. /opt/local # DarwinPorts
  23. /opt/csw # Blastwave
  24. /opt
  25. )
  26. FIND_LIBRARY(PHYSFS_LIBRARY
  27. NAMES physfs
  28. HINTS
  29. $ENV{PHYSFSDIR}
  30. PATH_SUFFIXES lib64 lib
  31. PATHS
  32. ~/Library/Frameworks
  33. /Library/Frameworks
  34. /usr/local
  35. /usr
  36. /sw
  37. /opt/local
  38. /opt/csw
  39. /opt
  40. )
  41. SET(PHYSFS_FOUND "NO")
  42. IF(PHYSFS_LIBRARY AND PHYSFS_INCLUDE_DIR)
  43. SET(PHYSFS_FOUND "YES")
  44. ENDIF(PHYSFS_LIBRARY AND PHYSFS_INCLUDE_DIR)