1 # Locate PhysFS library
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
7 # $PHYSFSDIR is an environment variable that would
8 # correspond to the ./configure --prefix=$PHYSFSDIR
9 # used in building PHYSFS.
11 # Created by Eric Wing.
13 FIND_PATH(PHYSFS_INCLUDE_DIR physfs.h
16 PATH_SUFFIXES include/physfs include
23 /opt/local # DarwinPorts
28 FIND_LIBRARY(PHYSFS_LIBRARY
32 PATH_SUFFIXES lib64 lib
44 SET(PHYSFS_FOUND "NO")
45 IF(PHYSFS_LIBRARY AND PHYSFS_INCLUDE_DIR)
46 SET(PHYSFS_FOUND "YES")
47 ENDIF(PHYSFS_LIBRARY AND PHYSFS_INCLUDE_DIR)