mirror of
https://github.com/hyprwm/hyprlock.git
synced 2025-05-13 05:40:42 +01:00
cmake: explicitly require GLES3 component (#645)
This allows building on a system that:
- Lack GLX support
- Require explicit declaration for OpenGL::EGL
Reference: 0cc144ecfd/Tests/FindOpenGL/Test/CMakeLists.txt (L127-131)
This commit is contained in:
parent
e84267085d
commit
023aff52ad
1 changed files with 3 additions and 4 deletions
|
@ -1,4 +1,4 @@
|
||||||
cmake_minimum_required(VERSION 3.19)
|
cmake_minimum_required(VERSION 3.27)
|
||||||
|
|
||||||
file(READ "${CMAKE_SOURCE_DIR}/VERSION" VER_RAW)
|
file(READ "${CMAKE_SOURCE_DIR}/VERSION" VER_RAW)
|
||||||
string(STRIP ${VER_RAW} VERSION)
|
string(STRIP ${VER_RAW} VERSION)
|
||||||
|
@ -56,7 +56,7 @@ message(STATUS "Checking deps...")
|
||||||
|
|
||||||
find_package(Threads REQUIRED)
|
find_package(Threads REQUIRED)
|
||||||
find_package(PkgConfig REQUIRED)
|
find_package(PkgConfig REQUIRED)
|
||||||
find_package(OpenGL REQUIRED)
|
find_package(OpenGL REQUIRED COMPONENTS EGL GLES3)
|
||||||
find_package(hyprwayland-scanner 0.4.4 REQUIRED)
|
find_package(hyprwayland-scanner 0.4.4 REQUIRED)
|
||||||
pkg_check_modules(
|
pkg_check_modules(
|
||||||
deps
|
deps
|
||||||
|
@ -67,7 +67,6 @@ pkg_check_modules(
|
||||||
wayland-egl
|
wayland-egl
|
||||||
hyprlang>=0.4.0
|
hyprlang>=0.4.0
|
||||||
egl
|
egl
|
||||||
opengl
|
|
||||||
xkbcommon
|
xkbcommon
|
||||||
libjpeg
|
libjpeg
|
||||||
libwebp
|
libwebp
|
||||||
|
@ -83,7 +82,7 @@ pkg_check_modules(
|
||||||
file(GLOB_RECURSE SRCFILES CONFIGURE_DEPENDS "src/*.cpp")
|
file(GLOB_RECURSE SRCFILES CONFIGURE_DEPENDS "src/*.cpp")
|
||||||
add_executable(hyprlock ${SRCFILES})
|
add_executable(hyprlock ${SRCFILES})
|
||||||
target_link_libraries(hyprlock PRIVATE pam rt Threads::Threads PkgConfig::deps
|
target_link_libraries(hyprlock PRIVATE pam rt Threads::Threads PkgConfig::deps
|
||||||
OpenGL::EGL OpenGL::GL)
|
OpenGL::EGL OpenGL::GLES3)
|
||||||
|
|
||||||
# protocols
|
# protocols
|
||||||
pkg_get_variable(WAYLAND_PROTOCOLS_DIR wayland-protocols pkgdatadir)
|
pkg_get_variable(WAYLAND_PROTOCOLS_DIR wayland-protocols pkgdatadir)
|
||||||
|
|
Loading…
Reference in a new issue