diff --git a/premake5.lua b/premake5.lua new file mode 100644 index 0000000..3f82e02 --- /dev/null +++ b/premake5.lua @@ -0,0 +1,47 @@ +workspace "tenvex" + architecture "x64" + configurations { "debug", "release" } + location "build" + +outputdir = "%{cfg.system}/x64/%{cfg.buildcfg}" + +project "tenvex" + location "build" + kind "StaticLib" + language "C++" + cppdialect "C++20" + staticruntime "on" + + targetdir ("bin/" .. outputdir .. "/output") + objdir ("bin/" .. outputdir .. "/intermediate") + + files { + "src/tenvex/**.h", + "src/tenvex/**.hpp", + "src/tenvex/**.cpp", + } + + includedirs { + "src/tenvex", + } + + filter "configurations:debug" + runtime "Debug" + symbols "on" + optimize "off" + defines { "TENVEX_DEBUG" } + + filter "configurations:release" + runtime "Release" + symbols "on" + optimize "Speed" + defines { "TENVEX_RELEASE" } + + filter "system:windows" + systemversion "latest" + + filter "system:linux" + pic "on" + + filter "system:macosx" + pic "on"