mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-24 06:27:17 +00:00
27 lines
528 B
CMake
27 lines
528 B
CMake
cmake_minimum_required(VERSION 3.5)
|
|
project(renderer_Opengl LANGUAGES C CXX)
|
|
|
|
find_package(PkgConfig)
|
|
pkg_check_modules(RENDERER_OPENGL REQUIRED IMPORTED_TARGET
|
|
gl
|
|
)
|
|
|
|
add_library(renderer_OpenGL STATIC
|
|
opengl.c
|
|
${PROJECT_TOP}/repos/cimgui/imgui/backends/imgui_impl_opengl2.cpp
|
|
)
|
|
|
|
target_compile_definitions(renderer_OpenGL PRIVATE CIMGUI_DEFINE_ENUMS_AND_STRUCTS=1)
|
|
|
|
target_link_libraries(renderer_OpenGL
|
|
PkgConfig::RENDERER_OPENGL
|
|
lg_common
|
|
|
|
cimgui
|
|
)
|
|
|
|
target_include_directories(renderer_OpenGL
|
|
PRIVATE
|
|
src
|
|
)
|