summaryrefslogtreecommitdiffstats
path: root/src/cmake
diff options
context:
space:
mode:
authorMartin Müllenhaupt <mm@netlair.de>2014-10-09 13:49:49 (GMT)
committerMartin Müllenhaupt <mm@netlair.de>2014-10-09 13:49:49 (GMT)
commit999ccbd16d6f371e70afc183d97e73f6477d1c10 (patch)
tree42f5a5ed178ca3a765baec1b09ebe64f763dd5aa /src/cmake
parentd9e168678b29cf990866dfbfb35e881929189295 (diff)
downloadmxe-999ccbd16d6f371e70afc183d97e73f6477d1c10.zip
mxe-999ccbd16d6f371e70afc183d97e73f6477d1c10.tar.gz
mxe-999ccbd16d6f371e70afc183d97e73f6477d1c10.tar.bz2
sdl_sound: provide cmake find-script and test
Diffstat (limited to 'src/cmake')
-rw-r--r--src/cmake/FindSDL_sound.cmake12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/cmake/FindSDL_sound.cmake b/src/cmake/FindSDL_sound.cmake
new file mode 100644
index 0000000..5de418b
--- /dev/null
+++ b/src/cmake/FindSDL_sound.cmake
@@ -0,0 +1,12 @@
+if(NOT PKG_CONFIG_FOUND)
+ find_package(PkgConfig REQUIRED)
+endif()
+
+pkg_check_modules(SDL_SOUND SDL_sound)
+
+#compatiblity
+set(SDL_SOUND_VERSION_STRING ${SDL_SOUND_VERSION})
+set(SDL_SOUND_LIBRARIES ${SDL_SOUND_EXTRAS};${SDL_SOUND_LIBRARIES})
+
+# for backward compatiblity
+set(SDL_SOUND_LIBRARY ${SDL_SOUND_LIBRARIES})