Saturday, July 18, 2009

Additional Include Folders

If you want to add additional include folders to your projects, then you need to edit the .pro file by hand and add an entry like the following:

INCLUDEPATH += [path]

This is especially useful if like me, you add core code to a separate .lib project but you don;t want to use relative paths in your #include statements.

You can add as many of these INCLUDEPATH statements as you like.

Eventually I'd like to see support for this in the IDE. In fact, I'd go as far as saying the editor should expose lots more additional .pro functionality without the user having to edit these files themselves.

2 comments: