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:
parent
a360e5117d
commit
b5f0e9b075
1 changed files with 1 additions and 5 deletions
|
|
@ -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}")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue