git.s-ol.nu ~forks/DiligentTools / d6246bf
Imgui: fixed xinput link errors on MinGW assiduous 1 year, 1 month ago
1 changed file(s) with 7 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
9393 target_compile_definitions(Diligent-Imgui PRIVATE IMGUI_DISABLE_WIN32_FUNCTIONS)
9494 endif()
9595
96 if(PLATFORM_WIN32 AND MINGW_BUILD)
97 # Link with xinput.lib as imgui_impl_win32.cpp skips
98 # '#pragma comment(lib, "xinput")'
99 # when compiler is not MSVC
100 target_link_libraries(Diligent-Imgui PRIVATE xinput.lib)
101 endif()
102
96103 source_group(TREE ${DEAR_IMGUI_PATH} PREFIX "dear_imgui" FILES ${DEAR_IMGUI_SOURCE} ${DEAR_IMGUI_INCLUDE} ${DEAR_IMGUI_INTERFACE})
97104 source_group("src" FILES ${SOURCE})
98105 source_group("include" FILES ${INCLUDE})