diff --git a/CMakeLists.txt b/CMakeLists.txt index 1e9e2dcc0641c..f79092d0e8b92 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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) diff --git a/src/third-party/CMakeLists.txt b/src/third-party/CMakeLists.txt index 56ce435deb303..0ff648748b8d0 100644 --- a/src/third-party/CMakeLists.txt +++ b/src/third-party/CMakeLists.txt @@ -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( @@ -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