mirror of https://github.com/WerWolv/ImHex.git
Only statically link on Windows
This commit is contained in:
parent
0b8b887978
commit
bbfb0556a6
|
@ -4,5 +4,7 @@ cmake-build-debug/
|
||||||
cmake-build-release/
|
cmake-build-release/
|
||||||
|
|
||||||
build-linux/
|
build-linux/
|
||||||
|
build/
|
||||||
|
|
||||||
*.mgc
|
*.mgc
|
||||||
|
imgui.ini
|
||||||
|
|
|
@ -8,7 +8,11 @@ pkg_search_module(GLFW REQUIRED glfw3)
|
||||||
find_package(OpenGL REQUIRED)
|
find_package(OpenGL REQUIRED)
|
||||||
|
|
||||||
include_directories(include ${GLFW_INCLUDE_DIRS} libs/ImGui/include libs/glad/include)
|
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
|
add_executable(ImHex
|
||||||
source/main.cpp
|
source/main.cpp
|
||||||
|
|
Loading…
Reference in New Issue