Add code generation on compiling to premake scripts using custom build commands

This commit is contained in:
Jan
2019-10-25 02:13:37 +02:00
parent d93b4f5fac
commit 034de70bbc
27 changed files with 345 additions and 325 deletions

View File

@ -5,7 +5,11 @@ function ZoneCommonTests:include()
end
function ZoneCommonTests:link()
links "ZoneCommonTests"
end
function ZoneCommonTests:use()
end
function ZoneCommonTests:project()
@ -19,11 +23,21 @@ function ZoneCommonTests:project()
files {
path.join(folder, "ZoneCommonTests/**.h"),
path.join(folder, "ZoneCommonTests/**.cpp")
path.join(folder, "ZoneCommonTests/**.cpp"),
ZoneCode:allTestFiles()
}
vpaths {
["*"] = {
path.join(folder, "ZoneCommonTests"),
path.join(BuildFolder(), "src/ZoneCode")
}
}
self:include()
ZoneCommon:include()
ZoneCommon:link()
ZoneCode:use()
end