mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-06-10 14:58:10 -05:00
Add code generation on compiling to premake scripts using custom build commands
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user