diff options
| author | Tomas Chvatal <scarabeus@gentoo.org> | 2009-03-12 17:19:26 +0100 |
|---|---|---|
| committer | Tomas Chvatal <scarabeus@gentoo.org> | 2009-03-12 17:19:26 +0100 |
| commit | 4d9c09fde118f23419123427430559ea41117012 (patch) | |
| tree | 085de2e9c8677885bf8167caff7b437f5f06a040 /cmake/FindSDL_mixer.cmake | |
| parent | 02f1b503f4822f4738584cf712da078cce47d3bd (diff) | |
Add all FindBLA.cmake to cmake folder, for further modifications to be able build windows version.
Diffstat (limited to 'cmake/FindSDL_mixer.cmake')
| -rw-r--r-- | cmake/FindSDL_mixer.cmake | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/cmake/FindSDL_mixer.cmake b/cmake/FindSDL_mixer.cmake new file mode 100644 index 0000000..720a17a --- /dev/null +++ b/cmake/FindSDL_mixer.cmake @@ -0,0 +1,62 @@ +# Locate SDL_mixer library +# This module defines +# SDLMIXER_LIBRARY, the name of the library to link against +# SDLMIXER_FOUND, if false, do not try to link to SDL +# SDLMIXER_INCLUDE_DIR, where to find SDL/SDL.h +# +# $SDLDIR is an environment variable that would +# correspond to the ./configure --prefix=$SDLDIR +# used in building SDL. +# +# Created by Eric Wing. This was influenced by the FindSDL.cmake +# module, but with modifications to recognize OS X frameworks and +# additional Unix paths (FreeBSD, etc). + +FIND_PATH(SDLMIXER_INCLUDE_DIR SDL_mixer.h + HINTS + $ENV{SDLMIXERDIR} + $ENV{SDLDIR} + PATH_SUFFIXES include + PATHS + ~/Library/Frameworks + /Library/Frameworks + /usr/local/include/SDL + /usr/include/SDL + /usr/local/include/SDL12 + /usr/local/include/SDL11 # FreeBSD ports + /usr/include/SDL12 + /usr/include/SDL11 + /usr/local/include + /usr/include + /sw/include/SDL # Fink + /sw/include + /opt/local/include/SDL # DarwinPorts + /opt/local/include + /opt/csw/include/SDL # Blastwave + /opt/csw/include + /opt/include/SDL + /opt/include +) + +FIND_LIBRARY(SDLMIXER_LIBRARY + NAMES SDL_mixer + HINTS + $ENV{SDLMIXERDIR} + $ENV{SDLDIR} + PATH_SUFFIXES lib64 lib + PATHS + ~/Library/Frameworks + /Library/Frameworks + /usr/local + /usr + /sw + /opt/local + /opt/csw + /opt +) + +SET(SDLMIXER_FOUND "NO") +IF(SDLMIXER_LIBRARY AND SDLMIXER_INCLUDE_DIR) + SET(SDLMIXER_FOUND "YES") +ENDIF(SDLMIXER_LIBRARY AND SDLMIXER_INCLUDE_DIR) + |