2019-03-28 04:03:35 +00:00
|
|
|
cmake_minimum_required(VERSION 3.0)
|
2021-07-08 01:45:54 +00:00
|
|
|
project(renderer_Opengl LANGUAGES C CXX)
|
2019-03-28 00:02:36 +00:00
|
|
|
|
|
|
|
find_package(PkgConfig)
|
2021-07-24 01:47:54 +00:00
|
|
|
pkg_check_modules(RENDERER_OPENGL REQUIRED IMPORTED_TARGET
|
2019-03-28 00:02:36 +00:00
|
|
|
gl
|
|
|
|
)
|
|
|
|
|
2019-03-28 08:56:14 +00:00
|
|
|
add_library(renderer_OpenGL STATIC
|
2019-03-28 00:02:36 +00:00
|
|
|
opengl.c
|
2021-07-08 01:45:54 +00:00
|
|
|
${PROJECT_TOP}/repos/cimgui/imgui/backends/imgui_impl_opengl2.cpp
|
2019-03-28 00:02:36 +00:00
|
|
|
)
|
|
|
|
|
2021-07-08 01:45:54 +00:00
|
|
|
target_compile_definitions(renderer_OpenGL PRIVATE CIMGUI_DEFINE_ENUMS_AND_STRUCTS=1)
|
|
|
|
|
2019-03-28 08:56:14 +00:00
|
|
|
target_link_libraries(renderer_OpenGL
|
2021-07-24 01:47:54 +00:00
|
|
|
PkgConfig::RENDERER_OPENGL
|
2019-04-11 01:12:59 +00:00
|
|
|
lg_common
|
2021-07-08 01:45:54 +00:00
|
|
|
|
|
|
|
cimgui
|
2019-03-28 00:02:36 +00:00
|
|
|
)
|
|
|
|
|
2019-03-28 08:56:14 +00:00
|
|
|
target_include_directories(renderer_OpenGL
|
2019-03-28 00:02:36 +00:00
|
|
|
PRIVATE
|
|
|
|
src
|
|
|
|
)
|