diff --git a/.gitignore b/.gitignore index 784576e03..73ff7ed9c 100644 --- a/.gitignore +++ b/.gitignore @@ -4,5 +4,7 @@ cmake-build-debug/ cmake-build-release/ build-linux/ +build/ *.mgc +imgui.ini diff --git a/CMakeLists.txt b/CMakeLists.txt index 98d512f6a..7dd13c61c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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