1
0
Fork 0
mirror of https://github.com/ocornut/imgui.git synced 2026-01-21 01:44:21 +00:00

Replaced conditional compilation of IMGUI_DEMO_SRC with generator expression.

This commit is contained in:
pumpkinpal 2020-05-15 11:41:23 +10:00 committed by ocornut
parent a360e5117d
commit b5f0e9b075

View file

@ -19,15 +19,11 @@ option (IMGUI_IMPL_DX12 "Build the DirectX 12 implementation (only if supported)
set (CMAKE_CXX_STANDARD 11)
if (IMGUI_DEMO)
set (IMGUI_DEMO_SRC imgui_demo.cpp)
endif ()
add_library (imgui STATIC
imgui.cpp
imgui_draw.cpp
imgui_widgets.cpp
${IMGUI_DEMO_SRC}
$<$<BOOL:IMGUI_DEMO>:imgui_demo.cpp>
)
target_include_directories (imgui PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}")