LookingGlass/client/renderers/EGL/CMakeLists.txt

73 lines
1.3 KiB
CMake
Raw Permalink Normal View History

cmake_minimum_required(VERSION 3.0)
project(renderer_EGL LANGUAGES C)
2019-03-28 00:02:36 +00:00
find_package(PkgConfig)
2019-03-28 00:02:36 +00:00
pkg_check_modules(RENDERER_EGL_PKGCONFIG REQUIRED
egl
2019-03-28 01:31:28 +00:00
gl
2019-03-28 00:02:36 +00:00
)
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
)
make_defines(
"${CMAKE_CURRENT_SOURCE_DIR}/shader/desktop_rgb.frag"
"${CMAKE_CURRENT_BINARY_DIR}/shader/desktop_rgb.def.h"
)
add_library(renderer_EGL STATIC
2019-03-28 00:02:36 +00:00
egl.c
egldebug.c
2019-03-28 00:02:36 +00:00
shader.c
texture.c
model.c
desktop.c
cursor.c
fps.c
help.c
2019-03-28 00:02:36 +00:00
draw.c
splash.c
alert.c
${EGL_SHADER_OBJS}
"${EGL_SHADER_INCS}/desktop_rgb.def.h"
2019-03-28 00:02:36 +00:00
)
target_link_libraries(renderer_EGL
2019-03-28 00:02:36 +00:00
${RENDERER_EGL_PKGCONFIG_LIBRARIES}
${RENDERER_EGL_OPT_PKGCONFIG_LIBRARIES}
lg_common
fonts
2019-03-28 00:02:36 +00:00
)
target_include_directories(renderer_EGL
2019-03-28 00:02:36 +00:00
PRIVATE
src
${EGL_SHADER_INCS}
2019-03-28 00:02:36 +00:00
${RENDERER_EGL_PKGCONFIG_INCLUDE_DIRS}
${RENDERER_EGL_OPT_PKGCONFIG_INCLUDE_DIRS}
2019-03-28 00:02:36 +00:00
)