John Doe
John Doe

Reputation: 1138

Can CDT recursively add include paths from subdirectories

Working on large scale projects where we get like 2k folders with sources in the project, providing all these folders manually as include paths for CDT is not really feasible.

Does CDT provide such a feature that adding the root folder of the project as an include path, it knows to search in all the sub-directories of the project?

Upvotes: 2

Views: 1233

Answers (1)

HighCommander4
HighCommander4

Reputation: 52739

There isn't an explicit feature for doing this, but I've found that checking Allow heuristic resolution of includes in Preferences | C/C++ | Indexer has the effect that the indexer will look for include files in all subdirectories of the project.

(This doesn't help you if you're adding the includes for the purposes of building in a Managed Build project. I would suggest using an external build system (make, CMake, ninja, etc.) in that case, as CDT Managed Build is mostly unmaintained these days anyways.)

Upvotes: 2

Related Questions