Introduce "generator expressions" to add_test()
[cmake.git] / Modules / FindPhysFS.cmake
blob443ce3831d7679edd8c6e29c69d77f27cfcab1da
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   HINTS
15   $ENV{PHYSFSDIR}
16   PATH_SUFFIXES include/physfs include
17   PATHS
18   ~/Library/Frameworks
19   /Library/Frameworks
20   /usr/local
21   /usr
22   /sw # Fink
23   /opt/local # DarwinPorts
24   /opt/csw # Blastwave
25   /opt
28 FIND_LIBRARY(PHYSFS_LIBRARY 
29   NAMES physfs
30   HINTS
31   $ENV{PHYSFSDIR}
32   PATH_SUFFIXES lib64 lib
33   PATHS
34   ~/Library/Frameworks
35   /Library/Frameworks
36   /usr/local
37   /usr
38   /sw
39   /opt/local
40   /opt/csw
41   /opt
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)