mirror of
https://github.com/ocornut/imgui.git
synced 2026-01-11 00:04:24 +00:00
ImGui Cmake file
This commit is contained in:
parent
dae66eb3b5
commit
fbbd4c94b4
1 changed files with 25 additions and 0 deletions
25
CMakeLists.txt
Normal file
25
CMakeLists.txt
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
cmake_minimum_required(VERSION 3.10)
|
||||
project(ImGui)
|
||||
|
||||
set(IMGUI_SRC
|
||||
imgui.cpp
|
||||
imgui_draw.cpp
|
||||
imgui_tables.cpp
|
||||
imgui_widgets.cpp
|
||||
imgui_demo.cpp
|
||||
backends/imgui_impl_glfw.cpp
|
||||
backends/imgui_impl_opengl3.cpp
|
||||
)
|
||||
|
||||
add_library(imgui STATIC ${IMGUI_SRC})
|
||||
|
||||
target_include_directories(imgui PUBLIC
|
||||
${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/backends
|
||||
${CMAKE_SOURCE_DIR}/dependencies/glfw/include
|
||||
)
|
||||
|
||||
set_target_properties(imgui PROPERTIES
|
||||
CXX_STANDARD 11
|
||||
CXX_STANDARD_REQUIRED ON
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue