Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Creating project file filters for VS2015+ with premake5?

Tags:

premake

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?

like image 839
dom_beau Avatar asked Oct 23 '25 08:10

dom_beau


1 Answers

The call you're looking for is vpaths:

vpaths {
    ["Headers"] = { "**.h", "**.hpp" },
    ["Sources/*"] = {"**.c", "**.cpp"},
    ["Docs"] = "**.md"
}
like image 54
J. Perkins Avatar answered Oct 25 '25 22:10

J. Perkins



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!