summaryrefslogtreecommitdiffstats
path: root/src/cmake/modules/FindSDL_net.cmake
blob: 7ef91cf7bc3898bd3b80015908f09c85e8a4e531 (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 LICENSE.md for licensing information.

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

if(NOT PKG_CONFIG_FOUND)
  find_package(PkgConfig REQUIRED)
endif()

pkg_check_modules(SDL_NET SDL_net)

#compatibility
set(SDL_NET_VERSION_STRING ${SDL_NET_VERSION})

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