forked from ocornut/imgui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
30 lines (24 loc) · 985 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
cmake_minimum_required (VERSION 3.2)
#project (imgui VERSION 0.0.1 LANGUAGES CXX)
set(IMGUI_DIR ${CMAKE_CURRENT_SOURCE_DIR})
set(GLAD_DIR ${CMAKE_CURRENT_SOURCE_DIR}/../glad)
set(GLAD_DIR ${CMAKE_CURRENT_SOURCE_DIR}/../GLFW)
add_library(IMGUI STATIC)
target_sources( IMGUI
PRIVATE
${IMGUI_DIR}/imgui_demo.cpp
${IMGUI_DIR}/imgui_draw.cpp
${IMGUI_DIR}/imgui_tables.cpp
${IMGUI_DIR}/imgui_widgets.cpp
${IMGUI_DIR}/imgui.cpp
PRIVATE
${IMGUI_DIR}/backends/imgui_impl_opengl3.cpp
${IMGUI_DIR}/backends/imgui_impl_glfw.cpp
)
target_include_directories( IMGUI
PUBLIC ${IMGUI_DIR}
PUBLIC ${IMGUI_DIR}/backends
PUBLIC ${GLAD_DIR}/include
PUBLIC ${GLFW_DIR}/include
)
add_compile_definitions(IMGUI_IMPL_OPENGL_LOADER_GLAD)