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 FIND_PATH(SDLNET_INCLUDE_DIR SDL_net.h
28 /usr/local/include/SDL
30 /usr/local/include/SDL12
31 /usr/local/include/SDL11 # FreeBSD ports
36 /sw/include/SDL # Fink
38 /opt/local/include/SDL # DarwinPorts
40 /opt/csw/include/SDL # Blastwave
45 FIND_LIBRARY(SDLNET_LIBRARY
51 PATH_SUFFIXES lib64 lib
54 FIND_LIBRARY(SDLNET_LIBRARY
65 PATH_SUFFIXES lib64 lib
68 SET(SDLNET_FOUND "NO")
69 IF(SDLNET_LIBRARY AND SDLNET_INCLUDE_DIR)
70 SET(SDLNET_FOUND "YES")
71 ENDIF(SDLNET_LIBRARY AND SDLNET_INCLUDE_DIR)