Statically link on windows, copy resources folder in CI

This commit is contained in:
Simone Coco
2022-09-17 20:16:25 +02:00
parent f4458e2aea
commit 71899ef9fa
6 changed files with 30 additions and 8 deletions

View File

@@ -17,5 +17,12 @@ add_library(imgui
imgui/backends/imgui_impl_vulkan.h
imgui/backends/imgui_impl_vulkan.cpp)
if(WIN32)
target_compile_options(imgui PUBLIC -mwindows)
set(LIBRARIES -static z stdc++ user32 gdi32 winmm Imm32 ole32 oleaut32 shell32 setupapi version uuid)
else()
set(LIBRARIES )
endif()
target_include_directories(imgui PUBLIC ${SDL2_INCLUDE_DIRS} imgui imgui/backends)
target_link_libraries(imgui PUBLIC SDL2main SDL2)
target_link_libraries(imgui PUBLIC SDL2main SDL2 ${LIBRARIES} )