summaryrefslogtreecommitdiffstats
path: root/src/cmake/modules/FindSDL_sound.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmake/modules/FindSDL_sound.cmake')
-rw-r--r--src/cmake/modules/FindSDL_sound.cmake15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/cmake/modules/FindSDL_sound.cmake b/src/cmake/modules/FindSDL_sound.cmake
new file mode 100644
index 0000000..9e8fa0b
--- /dev/null
+++ b/src/cmake/modules/FindSDL_sound.cmake
@@ -0,0 +1,15 @@
+# This file is part of MXE.
+# See index.html for further information.
+
+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})