1 # Locate SDL_ttf library
3 # SDLTTF_LIBRARY, the name of the library to link against
4 # SDLTTF_FOUND, if false, do not try to link to SDL
5 # SDLTTF_INCLUDE_DIR, where to find SDL/SDL.h
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).
15 FIND_PATH(SDLTTF_INCLUDE_DIR SDL_ttf.h
23 /usr/local/include/SDL
25 /usr/local/include/SDL12
26 /usr/local/include/SDL11 # FreeBSD ports
31 /sw/include/SDL # Fink
33 /opt/local/include/SDL # DarwinPorts
35 /opt/csw/include/SDL # Blastwave
41 FIND_LIBRARY(SDLTTF_LIBRARY
55 PATH_SUFFIXES lib64 lib
58 SET(SDLTTF_FOUND "NO")
59 IF(SDLTTF_LIBRARY AND SDLTTF_INCLUDE_DIR)
60 SET(SDLTTF_FOUND "YES")
61 ENDIF(SDLTTF_LIBRARY AND SDLTTF_INCLUDE_DIR)