1 # Locate SDL_net library
3 # SDLNET_LIBRARY, the name of the library to link against
4 # SDLNET_FOUND, if false, do not try to link against
5 # SDLNET_INCLUDE_DIR, where to find the headers
7 # $SDLDIR is an environment variable that would
8 # correspond to the ./configure --prefix=$SDLDIR
9 # used in building SDL.
11 # Created by Eric Wing. This was influenced by the FindSDL.cmake
12 # module, but with modifications to recognize OS X frameworks and
13 # additional Unix paths (FreeBSD, etc).
16 FIND_PATH(SDLNET_INCLUDE_DIR SDL_net.h
24 /usr/local/include/SDL
26 /usr/local/include/SDL12
27 /usr/local/include/SDL11 # FreeBSD ports
32 /sw/include/SDL # Fink
34 /opt/local/include/SDL # DarwinPorts
36 /opt/csw/include/SDL # Blastwave
41 FIND_LIBRARY(SDLNET_LIBRARY
46 PATH_SUFFIXES lib64 lib
58 SET(SDLNET_FOUND "NO")
59 IF(SDLNET_LIBRARY AND SDLNET_INCLUDE_DIR)
60 SET(SDLNET_FOUND "YES")
61 ENDIF(SDLNET_LIBRARY AND SDLNET_INCLUDE_DIR)