2024-05-16 22:37:46 +12:00
|
|
|
workspace "gearlib"
|
|
|
|
configurations { "Debug", "Release" }
|
|
|
|
location "build"
|
|
|
|
|
|
|
|
outputdir = "%{cfg.buildcfg}-%{cfg.system}"
|
2024-05-16 22:42:50 +12:00
|
|
|
|
|
|
|
includes = { "include", "include/gearlib" }
|
2024-05-16 22:37:46 +12:00
|
|
|
|
|
|
|
include "vendor/glfw"
|
|
|
|
|
|
|
|
project "gearlib"
|
|
|
|
kind "StaticLib"
|
|
|
|
language "C++"
|
|
|
|
targetdir "bin/%{cfg.buildcfg}/gearlib"
|
|
|
|
|
|
|
|
files { "include/**.h", "src/**.cpp", "src/**.c" }
|
|
|
|
includedirs(includes)
|
2024-05-16 22:42:50 +12:00
|
|
|
links { "GLFW" }
|
2024-05-16 22:37:46 +12:00
|
|
|
|
|
|
|
filter "configurations:Debug"
|
|
|
|
defines { "DEBUG" }
|
|
|
|
symbols "On"
|
|
|
|
|
|
|
|
filter "configurations:Release"
|
|
|
|
defines { "NDEBUG" }
|
|
|
|
optimize "On"
|
|
|
|
|
2024-05-16 22:42:50 +12:00
|
|
|
filter "system:linux"
|
|
|
|
links { "m" }
|
|
|
|
|
2024-05-16 22:37:46 +12:00
|
|
|
project "test"
|
|
|
|
kind "ConsoleApp"
|
|
|
|
language "C++"
|
|
|
|
targetdir "bin/%{cfg.buildcfg}/test"
|
|
|
|
|
|
|
|
files { "examples/test.cpp" }
|
|
|
|
includedirs(includes)
|
2024-05-16 22:42:50 +12:00
|
|
|
links { "GLFW", "gearlib" }
|
2024-05-16 22:37:46 +12:00
|
|
|
|
|
|
|
debugdir "examples"
|
|
|
|
|
|
|
|
filter "configurations:Debug"
|
|
|
|
defines { "DEBUG" }
|
|
|
|
symbols "On"
|
|
|
|
|
|
|
|
filter "configurations:Release"
|
|
|
|
defines { "NDEBUG" }
|
|
|
|
optimize "On"
|
2024-05-16 22:42:50 +12:00
|
|
|
|
|
|
|
filter "system:linux"
|
|
|
|
links { "m" }
|