aboutsummaryrefslogtreecommitdiff
path: root/raylib/src/external/glfw/CMake/modules
diff options
context:
space:
mode:
Diffstat (limited to 'raylib/src/external/glfw/CMake/modules')
-rw-r--r--raylib/src/external/glfw/CMake/modules/FindEpollShim.cmake17
-rw-r--r--raylib/src/external/glfw/CMake/modules/FindOSMesa.cmake18
2 files changed, 35 insertions, 0 deletions
diff --git a/raylib/src/external/glfw/CMake/modules/FindEpollShim.cmake b/raylib/src/external/glfw/CMake/modules/FindEpollShim.cmake
new file mode 100644
index 0000000..f34d070
--- /dev/null
+++ b/raylib/src/external/glfw/CMake/modules/FindEpollShim.cmake
@@ -0,0 +1,17 @@
1# Find EpollShim
2# Once done, this will define
3#
4# EPOLLSHIM_FOUND - System has EpollShim
5# EPOLLSHIM_INCLUDE_DIRS - The EpollShim include directories
6# EPOLLSHIM_LIBRARIES - The libraries needed to use EpollShim
7
8find_path(EPOLLSHIM_INCLUDE_DIRS NAMES sys/epoll.h sys/timerfd.h HINTS /usr/local/include/libepoll-shim)
9find_library(EPOLLSHIM_LIBRARIES NAMES epoll-shim libepoll-shim HINTS /usr/local/lib)
10
11if (EPOLLSHIM_INCLUDE_DIRS AND EPOLLSHIM_LIBRARIES)
12 set(EPOLLSHIM_FOUND TRUE)
13endif (EPOLLSHIM_INCLUDE_DIRS AND EPOLLSHIM_LIBRARIES)
14
15include(FindPackageHandleStandardArgs)
16find_package_handle_standard_args(EpollShim DEFAULT_MSG EPOLLSHIM_LIBRARIES EPOLLSHIM_INCLUDE_DIRS)
17mark_as_advanced(EPOLLSHIM_INCLUDE_DIRS EPOLLSHIM_LIBRARIES)
diff --git a/raylib/src/external/glfw/CMake/modules/FindOSMesa.cmake b/raylib/src/external/glfw/CMake/modules/FindOSMesa.cmake
new file mode 100644
index 0000000..3194bd9
--- /dev/null
+++ b/raylib/src/external/glfw/CMake/modules/FindOSMesa.cmake
@@ -0,0 +1,18 @@
1# Try to find OSMesa on a Unix system
2#
3# This will define:
4#
5# OSMESA_LIBRARIES - Link these to use OSMesa
6# OSMESA_INCLUDE_DIR - Include directory for OSMesa
7#
8# Copyright (c) 2014 Brandon Schaefer <brandon.schaefer@canonical.com>
9
10if (NOT WIN32)
11
12 find_package (PkgConfig)
13 pkg_check_modules (PKG_OSMESA QUIET osmesa)
14
15 set (OSMESA_INCLUDE_DIR ${PKG_OSMESA_INCLUDE_DIRS})
16 set (OSMESA_LIBRARIES ${PKG_OSMESA_LIBRARIES})
17
18endif ()

Generated with cgit - Back to sebastiano.tronto.net