summaryrefslogtreecommitdiffstats
path: root/src/cmake/FindSDL_net.cmake
blob: 61465e99884fa1d0274765639b5daa214b154b37 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# 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_NET SDL_net)

#compatiblity
set(SDL_NET_VERSION_STRING ${SDL_NET_VERSION})

# for backward compatiblity
set(SDLNET_LIBRARY ${SDL_NET_LIBRARIES})
set(SDLNET_INCLUDE_DIR ${SDL_NET_INCLUDE_DIRS})
set(SDLNET_FOUND ${SDL_NET_FOUND})