diff --git a/premake5.lua b/premake5.lua index 6d85ae5..5643db6 100644 --- a/premake5.lua +++ b/premake5.lua @@ -1,10 +1,10 @@ -local includes = { "include", "include/gearlib" } - workspace "gearlib" configurations { "Debug", "Release" } location "build" outputdir = "%{cfg.buildcfg}-%{cfg.system}" + + includes = { "include", "include/gearlib" } include "vendor/glfw" @@ -15,7 +15,7 @@ project "gearlib" files { "include/**.h", "src/**.cpp", "src/**.c" } includedirs(includes) - links { "GLFW", "m" } + links { "GLFW" } filter "configurations:Debug" defines { "DEBUG" } @@ -25,6 +25,9 @@ project "gearlib" defines { "NDEBUG" } optimize "On" + filter "system:linux" + links { "m" } + project "test" kind "ConsoleApp" language "C++" @@ -32,7 +35,7 @@ project "test" files { "examples/test.cpp" } includedirs(includes) - links { "GLFW", "gearlib", "m" } + links { "GLFW", "gearlib" } debugdir "examples" @@ -43,3 +46,6 @@ project "test" filter "configurations:Release" defines { "NDEBUG" } optimize "On" + + filter "system:linux" + links { "m" }