summaryrefslogtreecommitdiffstats
path: root/src/cmake/FindSDL.cmake
blob: f426494d92a5555dcffd04e9a3707652fa8ccb6e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# 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 sdl)

# for backward compatiblity
set(SDL_LIBRARY ${SDL_LIBRARIES})
set(SDL_INCLUDE_DIR ${SDL_INCLUDE_DIRS})
set(SDL_VERSION_STRING ${SDL_VERSION})