Added opengl32 lib and declared glew as static

This commit is contained in:
Nemirtingas 2019-08-16 11:11:13 +02:00
parent 78ffbc6571
commit cb0e1dff25
2 changed files with 2 additions and 1 deletions

View File

@ -115,6 +115,7 @@ target_link_libraries(${LIB_STEAM_API}
$<$<BOOL:${WIN32}>:ws2_32> $<$<BOOL:${WIN32}>:ws2_32>
$<$<BOOL:${WIN32}>:iphlpapi> $<$<BOOL:${WIN32}>:iphlpapi>
$<$<AND:$<BOOL:${WIN32}>,$<BOOL:${EMU_EXPERIMENTAL_BUILD}>,$<NOT:$<BOOL:${NO_OVERLAY}>>>:glew32s.lib> $<$<AND:$<BOOL:${WIN32}>,$<BOOL:${EMU_EXPERIMENTAL_BUILD}>,$<NOT:$<BOOL:${NO_OVERLAY}>>>:glew32s.lib>
$<$<AND:$<BOOL:${WIN32}>,$<BOOL:${EMU_EXPERIMENTAL_BUILD}>,$<NOT:$<BOOL:${NO_OVERLAY}>>>:opengl32.lib>
) )
# Add target compile definitions # Add target compile definitions
@ -126,6 +127,7 @@ target_compile_definitions(${LIB_STEAM_API}
$<$<CONFIG:MinSizeRel>:EMU_RELEASE_BUILD> $<$<CONFIG:MinSizeRel>:EMU_RELEASE_BUILD>
$<$<BOOL:${EMU_EXPERIMENTAL_BUILD}>:EMU_EXPERIMENTAL_BUILD> $<$<BOOL:${EMU_EXPERIMENTAL_BUILD}>:EMU_EXPERIMENTAL_BUILD>
$<$<BOOL:${NO_OVERLAY}>:NO_OVERLAY> $<$<BOOL:${NO_OVERLAY}>:NO_OVERLAY>
$<$<AND:$<BOOL:${WIN32}>,$<BOOL:${EMU_EXPERIMENTAL_BUILD}>,$<NOT:$<BOOL:${NO_OVERLAY}>>>:GLEW_STATIC>
) )
# Install the target # Install the target

View File

@ -94,5 +94,4 @@ namespace ImGui
#define IMGUI_INCLUDE_IMGUI_USER_H #define IMGUI_INCLUDE_IMGUI_USER_H
#define GLEW_STATIC
#define IMGUI_IMPL_OPENGL_LOADER_GLEW #define IMGUI_IMPL_OPENGL_LOADER_GLEW