ENH: update for Tcl/Tk 8.5
[cmake.git] / Modules / FindPhysFS.cmake
blob93e3b9914db0ac2b82ea5c959781a1b577d81f78
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
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
14   PATHS
15   $ENV{PHYSFSDIR}
16   NO_DEFAULT_PATH
17   PATH_SUFFIXES include
20 FIND_PATH(PHYSFS_INCLUDE_DIR physfs.h
21   PATHS
22   ~/Library/Frameworks
23   /Library/Frameworks
24   /usr/local
25   /usr
26   /sw # Fink
27   /opt/local # DarwinPorts
28   /opt/csw # Blastwave
29   /opt
30   PATH_SUFFIXES include/physfs include
33 FIND_LIBRARY(PHYSFS_LIBRARY 
34   NAMES physfs
35   PATHS
36   $ENV{PHYSFSDIR}
37   NO_DEFAULT_PATH
38     PATH_SUFFIXES lib64 lib
41 FIND_LIBRARY(PHYSFS_LIBRARY 
42   NAMES physfs
43   PATHS
44   ~/Library/Frameworks
45   /Library/Frameworks
46   /usr/local
47   /usr
48   /sw
49   /opt/local
50   /opt/csw
51   /opt
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)