LookingGlass/client/renderers/OpenGL/CMakeLists.txt

27 lines
528 B
CMake
Raw Permalink Normal View History

2023-11-09 07:31:26 +00:00
cmake_minimum_required(VERSION 3.5)
project(renderer_Opengl LANGUAGES C CXX)
2019-03-28 00:02:36 +00:00
find_package(PkgConfig)
pkg_check_modules(RENDERER_OPENGL REQUIRED IMPORTED_TARGET
gl
2019-03-28 00:02:36 +00:00
)
add_library(renderer_OpenGL STATIC
opengl.c
${PROJECT_TOP}/repos/cimgui/imgui/backends/imgui_impl_opengl2.cpp
2019-03-28 00:02:36 +00:00
)
target_compile_definitions(renderer_OpenGL PRIVATE CIMGUI_DEFINE_ENUMS_AND_STRUCTS=1)
target_link_libraries(renderer_OpenGL
PkgConfig::RENDERER_OPENGL
lg_common
cimgui
2019-03-28 00:02:36 +00:00
)
target_include_directories(renderer_OpenGL
PRIVATE
src
2019-03-28 00:02:36 +00:00
)