Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add imgui_stdlib to CMake #78094

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,20 @@ if (CURSES)
if (WIN32 AND VCPKG_MANIFEST_MODE)
find_package(unofficial-pdcurses CONFIG)
if(TARGET unofficial::pdcurses::pdcurses)
get_target_property(_IMPORTED_CONFIGURATIONS unofficial::pdcurses::pdcurses
IMPORTED_CONFIGURATIONS
)
message(YYY${_IMPORTED_CONFIGURATIONS})
if (RELEASE AND "Release" IN_LIST _IMPORTED_CONFIGURATIONS)
get_target_property(_IMPORTED_LOCATION unofficial::pdcurses::pdcurses
IMPORTED_IMPLIB_RELEASE)
elseif("Debug" IN_LIST _IMPORTED_CONFIGURATIONS)
get_target_property(_IMPORTED_LOCATION unofficial::pdcurses::pdcurses
IMPORTED_IMPLIB_DEBUG)
endif()
message(XXX${_IMPORTED_LOCATION})
set_target_properties(unofficial::pdcurses::pdcurses PROPERTIES
IMPORTED_LOCATION ${_IMPORTED_LOCATION})
set(USE_PDCURSES TRUE)
endif()
elseif(MSYS2)
Expand Down
26 changes: 14 additions & 12 deletions src/third-party/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -66,21 +66,24 @@ if (TILES)
imgui
STATIC
imgui/imconfig.h
imgui/imgui_internal.h
imgui/imgui.cpp
imgui/imgui.h
imgui/imstb_rectpack.h
imgui/imstb_textedit.h
imgui/imstb_truetype.h
imgui/imgui_demo.cpp
imgui/imgui_draw.cpp
imgui/imgui_freetype.cpp
imgui/imgui_tables.cpp
imgui/imgui_widgets.cpp
imgui/imgui.cpp
imgui/imgui_freetype.h
imgui/imgui_impl_sdl2.cpp
imgui/imgui_impl_sdl2.h
imgui/imgui_impl_sdlrenderer2.cpp
imgui/imgui_impl_sdlrenderer2.h
imgui/imgui_internal.h
imgui/imgui_stdlib.cpp
imgui/imgui_stdlib.h
imgui/imgui_tables.cpp
imgui/imgui_widgets.cpp
imgui/imstb_rectpack.h
imgui/imstb_textedit.h
imgui/imstb_truetype.h
)

target_include_directories(
Expand Down Expand Up @@ -131,16 +134,15 @@ if (CURSES)
imtui
STATIC
imgui/imconfig.h
imgui/imgui_internal.h
imgui/imgui.cpp
imgui/imgui.h
imgui/imstb_rectpack.h
imgui/imstb_textedit.h
imgui/imstb_truetype.h
imgui/imgui_demo.cpp
imgui/imgui_draw.cpp
imgui/imgui_internal.h
imgui/imgui_stdlib.cpp
imgui/imgui_stdlib.h
imgui/imgui_tables.cpp
imgui/imgui_widgets.cpp
imgui/imgui.cpp
imtui/imtui-impl-ncurses.cpp
imtui/imtui-impl-ncurses.h
imtui/imtui-impl-text.cpp
Expand Down
Loading