diff options
| author | Ahmad Fatoum <[email protected]> | 2018-05-10 22:40:41 +0200 |
|---|---|---|
| committer | Ahmad Fatoum <[email protected]> | 2018-05-10 23:07:26 +0200 |
| commit | 0df501be91a09af6b4b06bf44df86d8d06cdcada (patch) | |
| tree | 9f9d0a7222b562952d0551bc17b6ca753b5f12ec /src/external/glfw/CMake/modules/FindEpollShim.cmake | |
| parent | f11fe801809f5697c96010e0f08e26dc87c85b1b (diff) | |
| download | raylib-0df501be91a09af6b4b06bf44df86d8d06cdcada.tar.gz raylib-0df501be91a09af6b4b06bf44df86d8d06cdcada.zip | |
Add GLFW source tree to src/external
We need the CMake stuff for wayland configuration.
Otherwise, we would have to replicate that ourselves.
This is the full 7ef34eb06de54dd9186d3d21a401b2ef819b59e7 tree except
for tests/ examples/ and docs/
Diffstat (limited to 'src/external/glfw/CMake/modules/FindEpollShim.cmake')
| -rw-r--r-- | src/external/glfw/CMake/modules/FindEpollShim.cmake | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/external/glfw/CMake/modules/FindEpollShim.cmake b/src/external/glfw/CMake/modules/FindEpollShim.cmake new file mode 100644 index 00000000..2facb419 --- /dev/null +++ b/src/external/glfw/CMake/modules/FindEpollShim.cmake @@ -0,0 +1,17 @@ +# Find EpollShim +# Once done, this will define +# +# EPOLLSHIM_FOUND - System has EpollShim +# EPOLLSHIM_INCLUDE_DIRS - The EpollShim include directories +# EPOLLSHIM_LIBRARIES - The libraries needed to use EpollShim + +find_path(EPOLLSHIM_INCLUDE_DIRS NAMES sys/epoll.h sys/timerfd.h HINTS /usr/local/include/libepoll-shim) +find_library(EPOLLSHIM_LIBRARIES NAMES epoll-shim libepoll-shim HINTS /usr/local/lib) + +if (EPOLLSHIM_INCLUDE_DIRS AND EPOLLSHIM_LIBRARIES) + set(EPOLLSHIM_FOUND TRUE) +endif (EPOLLSHIM_INCLUDE_DIRS AND EPOLLSHIM_LIBRARIES) + +include(FindPackageHandleStandardArgs) +find_package_handle_standard_args(EPOLLSHIM DEFAULT_MSG EPOLLSHIM_LIBRARIES EPOLLSHIM_INCLUDE_DIRS) +mark_as_advanced(EPOLLSHIM_INCLUDE_DIRS EPOLLSHIM_LIBRARIES) |
