mirror of
https://github.com/Almamu/linux-wallpaperengine.git
synced 2025-09-14 13:56:48 +08:00
better searching for egl
This commit is contained in:
parent
d13918697a
commit
8bae933073
@ -305,14 +305,18 @@ target_link_libraries(linux-wallpaperengine
|
||||
glfw)
|
||||
|
||||
if (ENABLE_WAYLAND)
|
||||
# finding EGL is a bit troublesome
|
||||
pkg_check_modules(PKG_EGL QUIET egl)
|
||||
find_library(EGL_LIBRARY NAMES EGL libEGL HINTS ${PKG_EGL_LIBRARY_DIRS})
|
||||
add_library(EGL::EGL UNKNOWN IMPORTED)
|
||||
|
||||
target_link_libraries(linux-wallpaperengine ${CMAKE_SOURCE_DIR}/wlr-layer-shell-unstable-v1-protocol.o
|
||||
${CMAKE_SOURCE_DIR}/xdg-shell-protocol.o
|
||||
GLESv2
|
||||
pthread
|
||||
wayland-cursor
|
||||
/usr/lib/libEGL.so.1
|
||||
wayland-client
|
||||
wayland-egl)
|
||||
wayland-egl
|
||||
${EGL_LIBRARY})
|
||||
endif()
|
||||
|
||||
file(CREATE_LINK linux-wallpaperengine wallengine SYMBOLIC)
|
||||
|
Loading…
Reference in New Issue
Block a user