1
0
mirror of synced 2025-01-29 19:17:28 +01:00

Only statically link on Windows

This commit is contained in:
averne 2020-11-15 15:48:30 +01:00
parent 0b8b887978
commit bbfb0556a6
2 changed files with 7 additions and 1 deletions

2
.gitignore vendored
View File

@ -4,5 +4,7 @@ cmake-build-debug/
cmake-build-release/
build-linux/
build/
*.mgc
imgui.ini

View File

@ -8,7 +8,11 @@ pkg_search_module(GLFW REQUIRED glfw3)
find_package(OpenGL REQUIRED)
include_directories(include ${GLFW_INCLUDE_DIRS} libs/ImGui/include libs/glad/include)
SET(CMAKE_CXX_FLAGS "${CMAKE_C_FLAGS} -DIMGUI_IMPL_OPENGL_LOADER_GLAD -static-libstdc++ -static-libgcc -static")
SET(CMAKE_CXX_FLAGS "${CMAKE_C_FLAGS} -DIMGUI_IMPL_OPENGL_LOADER_GLAD")
if (WIN32)
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -static-libstdc++ -static-libgcc -static")
endif (WIN32)
add_executable(ImHex
source/main.cpp