Skip to content

Commit 8327499

Browse files
committed
Add ImPlot as a library Nabla extension
1 parent 0fa3cf3 commit 8327499

File tree

3 files changed

+22
-0
lines changed

3 files changed

+22
-0
lines changed

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,3 +87,6 @@
8787
[submodule "3rdparty/imgui"]
8888
path = 3rdparty/imgui
8989
url = git@github.com:ocornut/imgui.git
90+
[submodule "3rdparty/implot"]
91+
path = 3rdparty/implot
92+
url = git@github.com:epezent/implot.git

3rdparty/CMakeLists.txt

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,24 @@ if(NBL_BUILD_IMGUI)
250250
PUBLIC "imgui/backends"
251251
)
252252

253+
# ImPlot
254+
add_library(implot STATIC
255+
"implot/implot.h"
256+
"implot/implot_internal.h"
257+
"implot/implot.cpp"
258+
"implot/implot_items.cpp"
259+
)
260+
target_include_directories(implot
261+
PUBLIC "imgui"
262+
)
263+
target_link_libraries(implot PUBLIC imgui)
264+
target_compile_definitions(implot PUBLIC IMPLOT_DEBUG IMPLOT_DLL_EXPORT)
265+
set_property(TARGET implot PROPERTY CXX_STANDARD 11)
266+
if(MSVC)
267+
target_compile_options(implot PRIVATE /MT /W4 /WX /arch:AVX2 /fp:fast /permissive-)
268+
else()
269+
target_compile_options(implot PRIVATE -Wall -Wextra -pedantic -Werror -mavx2 -Ofast)
270+
endif()
253271
endif()
254272

255273
add_library(aesGladman OBJECT

3rdparty/implot

Submodule implot added at 18758e2

0 commit comments

Comments
 (0)