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
20 FIND_PATH(PHYSFS_INCLUDE_DIR physfs.h
27 /opt/local # DarwinPorts
30 PATH_SUFFIXES include/physfs include
33 FIND_LIBRARY(PHYSFS_LIBRARY
38 PATH_SUFFIXES lib64 lib
41 FIND_LIBRARY(PHYSFS_LIBRARY
52 PATH_SUFFIXES lib64 lib
55 SET(PHYSFS_FOUND "NO")
56 IF(PHYSFS_LIBRARY AND PHYSFS_INCLUDE_DIR)
57 SET(PHYSFS_FOUND "YES")
58 ENDIF(PHYSFS_LIBRARY AND PHYSFS_INCLUDE_DIR)