summaryrefslogtreecommitdiffstats
path: root/src/cmake/modules/FindSDL_net.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmake/modules/FindSDL_net.cmake')
-rw-r--r--src/cmake/modules/FindSDL_net.cmake16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/cmake/modules/FindSDL_net.cmake b/src/cmake/modules/FindSDL_net.cmake
new file mode 100644
index 0000000..61465e9
--- /dev/null
+++ b/src/cmake/modules/FindSDL_net.cmake
@@ -0,0 +1,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})