summaryrefslogtreecommitdiffstats
path: root/src/cmake/modules/FindSDL_sound.cmake
blob: 0c6d765325b6fa22028343e6e123912b2ad8f5e2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# This file is part of MXE.
# See index.html for further information.

message("== Custom MXE File: " ${CMAKE_CURRENT_LIST_FILE})

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})