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

Added library alias imgui::imgui and removed 'STATIC' from target.

This commit is contained in:
pumpkinpal 2020-05-15 11:52:40 +10:00 committed by ocornut
parent 37f5526bd1
commit ab3e62bcfe

View file

@ -17,13 +17,15 @@ option (IMGUI_IMPL_DX10 "Build the DirectX 10 implementation (only if supported)
option (IMGUI_IMPL_DX11 "Build the DirectX 11 implementation (only if supported)" ${WIN32})
option (IMGUI_IMPL_DX12 "Build the DirectX 12 implementation (only if supported)" ${WIN32})
add_library (imgui STATIC
add_library (imgui
imgui.cpp
imgui_draw.cpp
imgui_widgets.cpp
$<$<BOOL:IMGUI_DEMO>:imgui_demo.cpp>
)
add_library(imgui::imgui ALIAS imgui)
target_include_directories (imgui PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}")
set_target_properties(imgui PROPERTIES CXX_STANDARD 11)