From b58dfec1e8ad24b608f12af352edceb81ad0dfeb Mon Sep 17 00:00:00 2001 From: lovely_santa Date: Thu, 4 Jul 2019 11:36:50 +0200 Subject: [PATCH] Added support for linux --- premake5.lua | 63 ++++++++++++++++++++++++++++++---------------------- 1 file changed, 37 insertions(+), 26 deletions(-) diff --git a/premake5.lua b/premake5.lua index 043a0f17..25c9db99 100644 --- a/premake5.lua +++ b/premake5.lua @@ -1,28 +1,39 @@ project "ImGui" - kind "StaticLib" - language "C++" - - targetdir ("bin/" .. outputdir .. "/%{prj.name}") - objdir ("bin-int/" .. outputdir .. "/%{prj.name}") + kind "StaticLib" + language "C++" - files - { - "imconfig.h", - "imgui.h", - "imgui.cpp", - "imgui_draw.cpp", - "imgui_internal.h", - "imgui_widgets.cpp", - "imstb_rectpack.h", - "imstb_textedit.h", - "imstb_truetype.h", - "imgui_demo.cpp" - } - - filter "system:windows" - systemversion "latest" - cppdialect "C++17" - staticruntime "On" - - filter { "system:windows", "configurations:Release" } - buildoptions "/MT" + targetdir ("bin/" .. outputdir .. "/%{prj.name}") + objdir ("bin-int/" .. outputdir .. "/%{prj.name}") + + files + { + "imconfig.h", + "imgui.h", + "imgui.cpp", + "imgui_draw.cpp", + "imgui_internal.h", + "imgui_widgets.cpp", + "imstb_rectpack.h", + "imstb_textedit.h", + "imstb_truetype.h", + "imgui_demo.cpp" + } + + filter "system:windows" + systemversion "latest" + cppdialect "C++17" + staticruntime "On" + + filter "system:linux" + pic "On" + systemversion "latest" + cppdialect "C++17" + staticruntime "On" + + filter "configurations:Debug" + runtime "Debug" + symbols "on" + + filter "configurations:Release" + runtime "Release" + optimize "on"