mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-26 15:27:19 +00:00
25 lines
414 B
CMake
25 lines
414 B
CMake
cmake_minimum_required(VERSION 3.0)
|
|
project(renderer_Opengl LANGUAGES C)
|
|
|
|
find_package(PkgConfig)
|
|
pkg_check_modules(RENDERER_OPENGL_PKGCONFIG REQUIRED
|
|
gl
|
|
glu
|
|
)
|
|
|
|
add_library(renderer_OpenGL STATIC
|
|
opengl.c
|
|
)
|
|
|
|
target_link_libraries(renderer_OpenGL
|
|
${RENDERER_OPENGL_PKGCONFIG_LIBRARIES}
|
|
lg_common
|
|
fonts
|
|
)
|
|
|
|
target_include_directories(renderer_OpenGL
|
|
PRIVATE
|
|
src
|
|
${RENDERER_OPENGL_PKGCONFIG_INCLUDE_DIRS}
|
|
)
|