Add premake scripts for projects

This commit is contained in:
Jan
2019-10-22 02:40:06 +02:00
parent cae05efb7b
commit 0d103e24a5
15 changed files with 361 additions and 12 deletions

30
src/Utils.lua Normal file
View File

@ -0,0 +1,30 @@
Utils = {}
function Utils:include()
includedirs {
path.join(ProjectFolder(), "Utils")
}
end
function Utils:link()
links {
"Utils"
}
end
function Utils:project()
local folder = ProjectFolder();
project "Utils"
targetdir(TargetDirectoryLib)
location "%{wks.location}/src"
kind "StaticLib"
language "C++"
files {
path.join(folder, "Utils/**.h"),
path.join(folder, "Utils/**.cpp")
}
self:include()
end