1 # Locate SDL_mixer library
3 # SDLMIXER_LIBRARY, the name of the library to link against
4 # SDLMIXER_FOUND, if false, do not try to link to SDL
5 # SDLMIXER_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(SDLMIXER_INCLUDE_DIR SDL_mixer.h
23 FIND_PATH(SDLMIXER_INCLUDE_DIR SDL_mixer.h
27 /usr/local/include/SDL
29 /usr/local/include/SDL12
30 /usr/local/include/SDL11 # FreeBSD ports
35 /sw/include/SDL # Fink
37 /opt/local/include/SDL # DarwinPorts
39 /opt/csw/include/SDL # Blastwave
45 FIND_LIBRARY(SDLMIXER_LIBRARY
51 PATH_SUFFIXES lib64 lib
54 FIND_LIBRARY(SDLMIXER_LIBRARY
65 PATH_SUFFIXES lib64 lib
68 SET(SDLMIXER_FOUND "NO")
69 IF(SDLMIXER_LIBRARY AND SDLMIXER_INCLUDE_DIR)
70 SET(SDLMIXER_FOUND "YES")
71 ENDIF(SDLMIXER_LIBRARY AND SDLMIXER_INCLUDE_DIR)