diff --git a/WalnutApp/premake5.lua b/WalnutApp/premake5.lua index 48c731e..39a1817 100644 --- a/WalnutApp/premake5.lua +++ b/WalnutApp/premake5.lua @@ -1,4 +1,4 @@ -project "WalnutApp" +project (%{wks.name}) kind "ConsoleApp" language "C++" cppdialect "C++17" @@ -46,4 +46,4 @@ project "WalnutApp" defines { "WL_DIST" } runtime "Release" optimize "On" - symbols "Off" \ No newline at end of file + symbols "Off" diff --git a/premake5.lua b/premake5.lua index 5ba884a..63d6559 100644 --- a/premake5.lua +++ b/premake5.lua @@ -1,10 +1,11 @@ -- premake5.lua -workspace "WalnutApp" +local AppName = "WalnutApp" +workspace (AppName) architecture "x64" configurations { "Debug", "Release", "Dist" } - startproject "WalnutApp" + startproject (AppName) outputdir = "%{cfg.buildcfg}-%{cfg.system}-%{cfg.architecture}" include "Walnut/WalnutExternal.lua" -include "WalnutApp" \ No newline at end of file +include (AppName)