I use premake5 version 5.0.0-alpha11 for multi projects. Each project is a independent with each others. Currently, my premake5.lua as below
-- The windowed app
project "1.DepthTest"
kind "ConsoleApp"
filter { "system:Windows" }
files "Projects/1.DepthTest/**"
filter { "system:windows" }
links { "OpenGL32" }
filter { "system:not windows" }
links { "GL" }
project "2.StencilTest"
kind "ConsoleApp"
filter { "system:Windows" }
files "Projects/2.StencilTest/**"
filter { "system:windows" }
links { "OpenGL32" }
filter { "system:not windows" }
links { "GL" }
And I have around 20 projects like this. Do you have any idea how to make it sorter as using a list same as cmake ? Such as
projectsList {'1.DepthTest','2.StencilTest'}
func GenerateProject(projectList[i])
Update Finally, I know how to do with my requirement
function GenerateProject(s)
print(s)
project (s)
kind "ConsoleApp"
files {
'./' .. s .. '/**.*',
}
end
for key, value in ipairs(projectsList) do
GenerateProject(value)
end
Also the projects is generated without structure, I found the question about vpaths in Hide common parent folders of project files in Premake But I still not clear how to do it.
Many thanks, Seal