summaryrefslogtreecommitdiffstats
path: root/src/cmake/FindSDL_image.cmake
blob: 6251d9db111edbffa1ac9ef011d332855ad38b65 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# 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_IMAGE SDL_image)

# for backward compatiblity
set(SDLIMAGE_LIBRARY ${SDL_IMAGE_LIBRARIES})
set(SDL_IMAGE_LIBRARY ${SDL_IMAGE_LIBRARIES})
set(SDLIMAGE_INCLUDE_DIR ${SDL_IMAGE_INCLUDE_DIRS})
set(SDLIMAGE_FOUND ${SDL_IMAGE_FOUND})