make math link linux only cos m.lib isnt on windows
This commit is contained in:
parent
b31e7e35e5
commit
a50fb75cc2
14
premake5.lua
14
premake5.lua
|
@ -1,11 +1,11 @@
|
||||||
local includes = { "include", "include/gearlib" }
|
|
||||||
|
|
||||||
workspace "gearlib"
|
workspace "gearlib"
|
||||||
configurations { "Debug", "Release" }
|
configurations { "Debug", "Release" }
|
||||||
location "build"
|
location "build"
|
||||||
|
|
||||||
outputdir = "%{cfg.buildcfg}-%{cfg.system}"
|
outputdir = "%{cfg.buildcfg}-%{cfg.system}"
|
||||||
|
|
||||||
|
includes = { "include", "include/gearlib" }
|
||||||
|
|
||||||
include "vendor/glfw"
|
include "vendor/glfw"
|
||||||
|
|
||||||
project "gearlib"
|
project "gearlib"
|
||||||
|
@ -15,7 +15,7 @@ project "gearlib"
|
||||||
|
|
||||||
files { "include/**.h", "src/**.cpp", "src/**.c" }
|
files { "include/**.h", "src/**.cpp", "src/**.c" }
|
||||||
includedirs(includes)
|
includedirs(includes)
|
||||||
links { "GLFW", "m" }
|
links { "GLFW" }
|
||||||
|
|
||||||
filter "configurations:Debug"
|
filter "configurations:Debug"
|
||||||
defines { "DEBUG" }
|
defines { "DEBUG" }
|
||||||
|
@ -25,6 +25,9 @@ project "gearlib"
|
||||||
defines { "NDEBUG" }
|
defines { "NDEBUG" }
|
||||||
optimize "On"
|
optimize "On"
|
||||||
|
|
||||||
|
filter "system:linux"
|
||||||
|
links { "m" }
|
||||||
|
|
||||||
project "test"
|
project "test"
|
||||||
kind "ConsoleApp"
|
kind "ConsoleApp"
|
||||||
language "C++"
|
language "C++"
|
||||||
|
@ -32,7 +35,7 @@ project "test"
|
||||||
|
|
||||||
files { "examples/test.cpp" }
|
files { "examples/test.cpp" }
|
||||||
includedirs(includes)
|
includedirs(includes)
|
||||||
links { "GLFW", "gearlib", "m" }
|
links { "GLFW", "gearlib" }
|
||||||
|
|
||||||
debugdir "examples"
|
debugdir "examples"
|
||||||
|
|
||||||
|
@ -43,3 +46,6 @@ project "test"
|
||||||
filter "configurations:Release"
|
filter "configurations:Release"
|
||||||
defines { "NDEBUG" }
|
defines { "NDEBUG" }
|
||||||
optimize "On"
|
optimize "On"
|
||||||
|
|
||||||
|
filter "system:linux"
|
||||||
|
links { "m" }
|
||||||
|
|
Loading…
Reference in a new issue