diff options
author | Tony Crisci <tony@dubstepdish.com> | 2017-12-01 05:21:03 -0500 |
---|---|---|
committer | Tony Crisci <tony@dubstepdish.com> | 2017-12-01 05:21:03 -0500 |
commit | d071ff08aeae2bbea4ac4a8e56c7a146c13d0869 (patch) | |
tree | b1780435422ac6d778fd4b9c0a4746306dee59fe /CMake/FindWayland.cmake | |
parent | remove relevant CMakeLists.txt (diff) | |
download | sway-d071ff08aeae2bbea4ac4a8e56c7a146c13d0869.tar.gz sway-d071ff08aeae2bbea4ac4a8e56c7a146c13d0869.tar.zst sway-d071ff08aeae2bbea4ac4a8e56c7a146c13d0869.zip |
remove the rest of cmake
Diffstat (limited to 'CMake/FindWayland.cmake')
-rw-r--r-- | CMake/FindWayland.cmake | 67 |
1 files changed, 0 insertions, 67 deletions
diff --git a/CMake/FindWayland.cmake b/CMake/FindWayland.cmake deleted file mode 100644 index 69130fe0..00000000 --- a/CMake/FindWayland.cmake +++ /dev/null | |||
@@ -1,67 +0,0 @@ | |||
1 | # Try to find Wayland on a Unix system | ||
2 | # | ||
3 | # This will define: | ||
4 | # | ||
5 | # WAYLAND_FOUND - True if Wayland is found | ||
6 | # WAYLAND_LIBRARIES - Link these to use Wayland | ||
7 | # WAYLAND_INCLUDE_DIR - Include directory for Wayland | ||
8 | # WAYLAND_DEFINITIONS - Compiler flags for using Wayland | ||
9 | # | ||
10 | # In addition the following more fine grained variables will be defined: | ||
11 | # | ||
12 | # WAYLAND_CLIENT_FOUND WAYLAND_CLIENT_INCLUDE_DIR WAYLAND_CLIENT_LIBRARIES | ||
13 | # WAYLAND_SERVER_FOUND WAYLAND_SERVER_INCLUDE_DIR WAYLAND_SERVER_LIBRARIES | ||
14 | # WAYLAND_EGL_FOUND WAYLAND_EGL_INCLUDE_DIR WAYLAND_EGL_LIBRARIES | ||
15 | # WAYLAND_CURSOR_FOUND WAYLAND_CURSOR_INCLUDE_DIR WAYLAND_CURSOR_LIBRARIES | ||
16 | # | ||
17 | # Copyright (c) 2013 Martin Gräßlin <mgraesslin@kde.org> | ||
18 | # | ||
19 | # Redistribution and use is allowed according to the terms of the BSD license. | ||
20 | # For details see the accompanying COPYING-CMAKE-SCRIPTS file. | ||
21 | |||
22 | IF (NOT WIN32) | ||
23 | IF (WAYLAND_INCLUDE_DIR AND WAYLAND_LIBRARIES) | ||
24 | # In the cache already | ||
25 | SET(WAYLAND_FIND_QUIETLY TRUE) | ||
26 | ENDIF () | ||
27 | |||
28 | # Use pkg-config to get the directories and then use these values | ||
29 | # in the FIND_PATH() and FIND_LIBRARY() calls | ||
30 | FIND_PACKAGE(PkgConfig) | ||
31 | PKG_CHECK_MODULES(PKG_WAYLAND QUIET wayland-client wayland-server wayland-egl wayland-cursor) | ||
32 | |||
33 | SET(WAYLAND_DEFINITIONS ${PKG_WAYLAND_CFLAGS}) | ||
34 | |||
35 | FIND_PATH(WAYLAND_CLIENT_INCLUDE_DIR NAMES wayland-client.h HINTS ${PKG_WAYLAND_INCLUDE_DIRS}) | ||
36 | FIND_PATH(WAYLAND_SERVER_INCLUDE_DIR NAMES wayland-server.h HINTS ${PKG_WAYLAND_INCLUDE_DIRS}) | ||
37 | FIND_PATH(WAYLAND_EGL_INCLUDE_DIR NAMES wayland-egl.h HINTS ${PKG_WAYLAND_INCLUDE_DIRS}) | ||
38 | FIND_PATH(WAYLAND_CURSOR_INCLUDE_DIR NAMES wayland-cursor.h HINTS ${PKG_WAYLAND_INCLUDE_DIRS}) | ||
39 | |||
40 | FIND_LIBRARY(WAYLAND_CLIENT_LIBRARIES NAMES wayland-client HINTS ${PKG_WAYLAND_LIBRARY_DIRS}) | ||
41 | FIND_LIBRARY(WAYLAND_SERVER_LIBRARIES NAMES wayland-server HINTS ${PKG_WAYLAND_LIBRARY_DIRS}) | ||
42 | FIND_LIBRARY(WAYLAND_EGL_LIBRARIES NAMES wayland-egl HINTS ${PKG_WAYLAND_LIBRARY_DIRS}) | ||
43 | FIND_LIBRARY(WAYLAND_CURSOR_LIBRARIES NAMES wayland-cursor HINTS ${PKG_WAYLAND_LIBRARY_DIRS}) | ||
44 | |||
45 | set(WAYLAND_INCLUDE_DIR ${WAYLAND_CLIENT_INCLUDE_DIR} ${WAYLAND_SERVER_INCLUDE_DIR} ${WAYLAND_EGL_INCLUDE_DIR} ${WAYLAND_CURSOR_INCLUDE_DIR}) | ||
46 | |||
47 | set(WAYLAND_LIBRARIES ${WAYLAND_CLIENT_LIBRARIES} ${WAYLAND_SERVER_LIBRARIES} ${WAYLAND_EGL_LIBRARIES} ${WAYLAND_CURSOR_LIBRARIES}) | ||
48 | |||
49 | list(REMOVE_DUPLICATES WAYLAND_INCLUDE_DIR) | ||
50 | |||
51 | include(FindPackageHandleStandardArgs) | ||
52 | |||
53 | FIND_PACKAGE_HANDLE_STANDARD_ARGS(WAYLAND_CLIENT DEFAULT_MSG WAYLAND_CLIENT_LIBRARIES WAYLAND_CLIENT_INCLUDE_DIR) | ||
54 | FIND_PACKAGE_HANDLE_STANDARD_ARGS(WAYLAND_SERVER DEFAULT_MSG WAYLAND_SERVER_LIBRARIES WAYLAND_SERVER_INCLUDE_DIR) | ||
55 | FIND_PACKAGE_HANDLE_STANDARD_ARGS(WAYLAND_EGL DEFAULT_MSG WAYLAND_EGL_LIBRARIES WAYLAND_EGL_INCLUDE_DIR) | ||
56 | FIND_PACKAGE_HANDLE_STANDARD_ARGS(WAYLAND_CURSOR DEFAULT_MSG WAYLAND_CURSOR_LIBRARIES WAYLAND_CURSOR_INCLUDE_DIR) | ||
57 | FIND_PACKAGE_HANDLE_STANDARD_ARGS(WAYLAND DEFAULT_MSG WAYLAND_LIBRARIES WAYLAND_INCLUDE_DIR) | ||
58 | |||
59 | MARK_AS_ADVANCED( | ||
60 | WAYLAND_INCLUDE_DIR WAYLAND_LIBRARIES | ||
61 | WAYLAND_CLIENT_INCLUDE_DIR WAYLAND_CLIENT_LIBRARIES | ||
62 | WAYLAND_SERVER_INCLUDE_DIR WAYLAND_SERVER_LIBRARIES | ||
63 | WAYLAND_EGL_INCLUDE_DIR WAYLAND_EGL_LIBRARIES | ||
64 | WAYLAND_CURSOR_INCLUDE_DIR WAYLAND_CURSOR_LIBRARIES | ||
65 | ) | ||
66 | |||
67 | ENDIF () | ||