3

In our original solution, we have filters in our projects that allow us to sort files: "Source Files", "Header Files", etc.

I would like to reproduce this behaviour with premake 5. I'm able to create filters for sorting projects using group "..." but I'm unable to perform the same task inside a project.

Any ideas?

dom_beau
  • 2,437
  • 3
  • 30
  • 59

1 Answers1

4

The call you're looking for is vpaths:

vpaths {
    ["Headers"] = { "**.h", "**.hpp" },
    ["Sources/*"] = {"**.c", "**.cpp"},
    ["Docs"] = "**.md"
}
J. Perkins
  • 4,156
  • 2
  • 34
  • 48