mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-25 14:57:20 +00:00
5ac53362a3
The help text is rendered in the bottom left corner on a semi-transparent background, very similar to how the FPS text is rendered.
67 lines
1.1 KiB
CMake
67 lines
1.1 KiB
CMake
cmake_minimum_required(VERSION 3.0)
|
|
project(renderer_EGL LANGUAGES C)
|
|
|
|
find_package(PkgConfig)
|
|
pkg_check_modules(RENDERER_EGL_PKGCONFIG REQUIRED
|
|
egl
|
|
gl
|
|
)
|
|
|
|
pkg_check_modules(RENDERER_EGL_OPT_PKGCONFIG
|
|
wayland-egl
|
|
)
|
|
|
|
include(MakeObject)
|
|
make_object(
|
|
EGL_SHADER
|
|
shader/desktop.vert
|
|
shader/desktop_rgb.frag
|
|
shader/cursor.vert
|
|
shader/cursor_rgb.frag
|
|
shader/cursor_mono.frag
|
|
shader/fps.vert
|
|
shader/fps.frag
|
|
shader/fps_bg.frag
|
|
shader/help.vert
|
|
shader/help.frag
|
|
shader/help_bg.frag
|
|
shader/alert.vert
|
|
shader/alert.frag
|
|
shader/alert_bg.frag
|
|
shader/splash_bg.vert
|
|
shader/splash_bg.frag
|
|
shader/splash_logo.vert
|
|
shader/splash_logo.frag
|
|
)
|
|
|
|
add_library(renderer_EGL STATIC
|
|
egl.c
|
|
egldebug.c
|
|
shader.c
|
|
texture.c
|
|
model.c
|
|
desktop.c
|
|
cursor.c
|
|
fps.c
|
|
help.c
|
|
draw.c
|
|
splash.c
|
|
alert.c
|
|
${EGL_SHADER_OBJS}
|
|
)
|
|
|
|
target_link_libraries(renderer_EGL
|
|
${RENDERER_EGL_PKGCONFIG_LIBRARIES}
|
|
${RENDERER_EGL_OPT_PKGCONFIG_LIBRARIES}
|
|
lg_common
|
|
fonts
|
|
)
|
|
|
|
target_include_directories(renderer_EGL
|
|
PRIVATE
|
|
src
|
|
${EGL_SHADER_INCS}
|
|
${RENDERER_EGL_PKGCONFIG_INCLUDE_DIRS}
|
|
${RENDERER_EGL_OPT_PKGCONFIG_INCLUDE_DIRS}
|
|
)
|