File tree 4 files changed +19
-3
lines changed 4 files changed +19
-3
lines changed Original file line number Diff line number Diff line change 10
10
[submodule "vendor/imgui/imnodes "]
11
11
path = vendor/imgui/imnodes
12
12
url = https://github.com/Nelarius/imnodes.git
13
+ [submodule "vendor/imgui/implot "]
14
+ path = vendor/imgui/implot
15
+ url = https://github.com/epezent/implot.git
Original file line number Diff line number Diff line change @@ -3,6 +3,8 @@ cmake_minimum_required(VERSION 3.28.3)
3
3
4
4
set (SUPPRESS_VENDOR_WARNINGS ON CACHE BOOL "suppress vendor warnings?" )
5
5
6
+ option (ENABLE_IM_NODES "enable ImNodes" ON )
7
+ option (ENABLE_IM_PLOT "enable ImPlot" ON )
6
8
7
9
add_subdirectory (vendor/raylib)
8
10
add_subdirectory (vendor/imgui)
Original file line number Diff line number Diff line change 1
1
file (GLOB IMGUI_SRC imgui/*.cpp)
2
- file (GLOB IMNODES_SRC imnodes/*.cpp)
2
+ set (IMGUI_INCLUDES imgui rlImGui)
3
+
4
+ if (ENABLE_IM_NODES)
5
+ list (APPEND IMGUI_SRC imnodes/imnodes.cpp)
6
+ list (APPEND IMGUI_INCLUDES imnodes)
7
+ endif ()
8
+
9
+ if (ENABLE_IM_PLOT)
10
+ list (APPEND IMGUI_SRC implot/implot.cpp implot/implot_demo.cpp implot/implot_items.cpp)
11
+ list (APPEND IMGUI_INCLUDES implot)
12
+ endif ()
13
+
3
14
4
15
add_library (imgui STATIC
5
16
${IMGUI_SRC}
6
- ${IMNODES_SRC}
7
17
rlImGui/rlImGui.cpp
8
18
)
9
- target_include_directories (imgui PUBLIC imgui imnodes rlImGui )
19
+ target_include_directories (imgui PUBLIC ${IMGUI_INCLUDES} )
10
20
target_link_libraries (imgui PUBLIC raylib)
11
21
12
22
You can’t perform that action at this time.
0 commit comments