ENH: typo
[cmake.git] / Modules / FindSDL_mixer.cmake
blob59b0f5ace24f0647d1f63181f489c0b005e96dbd
1 # Locate SDL_mixer library
2 # This module defines
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
16   PATHS
17   $ENV{SDLMIXERDIR}
18   $ENV{SDLDIR}
19   NO_DEFAULT_PATH
20   PATH_SUFFIXES include
23 FIND_PATH(SDLMIXER_INCLUDE_DIR SDL_mixer.h
24   PATHS
25   ~/Library/Frameworks
26   /Library/Frameworks
27   /usr/local/include/SDL
28   /usr/include/SDL
29   /usr/local/include/SDL12
30   /usr/local/include/SDL11 # FreeBSD ports
31   /usr/include/SDL12
32   /usr/include/SDL11
33   /usr/local/include
34   /usr/include
35   /sw/include/SDL # Fink
36   /sw/include
37   /opt/local/include/SDL # DarwinPorts
38   /opt/local/include
39   /opt/csw/include/SDL # Blastwave
40   /opt/csw/include 
41   /opt/include/SDL
42   /opt/include
45 FIND_LIBRARY(SDLMIXER_LIBRARY 
46   NAMES SDL_mixer
47   PATHS
48   $ENV{SDLMIXERDIR}
49   $ENV{SDLDIR}
50   NO_DEFAULT_PATH
51     PATH_SUFFIXES lib64 lib
54 FIND_LIBRARY(SDLMIXER_LIBRARY 
55   NAMES SDL_mixer
56   PATHS
57   ~/Library/Frameworks
58   /Library/Frameworks
59   /usr/local
60   /usr
61   /sw
62   /opt/local
63   /opt/csw
64   /opt
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)