OSDN Git Service

FIRST REPOSITORY
[eos/hostdependOTHERS.git] / I386LINUX / util / I386LINUX / share / CMake / Modules / FindSDL.cmake
1 # Locate SDL library
2 # This module defines
3 # SDL_LIBRARY, the name of the library to link against
4 # SDL_FOUND, if false, do not try to link to SDL
5 # SDL_INCLUDE_DIR, where to find SDL/SDL.h
6 #
7 # $SDLDIR is an environment variable that would
8 # correspond to the ./configure --prefix=$SDLDIR
9 # used in building SDL.
10 # l.e.galup  9-20-02
11
12
13
14 IF (UNIX)
15
16   FIND_LIBRARY(SDL_LIBRARY SDL
17     $ENV{SDLDIR}/lib
18     /usr/lib
19     /usr/local/lib
20   )
21
22   FIND_PATH( SDL_INCLUDE_DIR SDL/SDL.h
23     $ENV{SDLDIR}/include
24     /usr/include
25     /usr/local/include
26   )
27
28 ENDIF (UNIX)
29
30 SET( SDL_FOUND "NO" )
31 IF(SDL_LIBRARY)
32         SET( SDL_FOUND "YES" )
33 ENDIF(SDL_LIBRARY)