Welcome!

Welcome to the Official BlackBerry Support Community Forums. This is your resource to discuss support topics with your peers, and learn from each other. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Native Development

Reply
New Developer
plungeint
Posts: 51
Registered: ‎03-10-2012
My Carrier: n/a
Accepted Solution

Relative paths to .h includes

Hi,

 

I have a project that makes references to other projects in the workspace. Is there any way to reference those projects so I can avoid doing thinks like this:

 

#include "../Screens/MainMenuScene.h"

 

and I can do this instead?

 

#include "MainMenuScene.h"

 

 

thanks.

 

JB

Please use plain text.
Developer
Zmey
Posts: 983
Registered: ‎12-18-2012

Re: Relative paths to .h includes

Hi,

You can add them to INCLUDEPATH in .pro file:

INCLUDEPATH += yourDir

Andrey Fidrya, @zmeyc on twitter
Please use plain text.
New Developer
plungeint
Posts: 51
Registered: ‎03-10-2012
My Carrier: n/a

Re: Relative paths to .h includes

is that the same than doing:

 

properties -> c/c++ build -> settings -> preprocessor?

 

thanks

Please use plain text.
Developer
BGmot
Posts: 1,010
Registered: ‎11-24-2011
My Carrier: x

Re: Relative paths to .h includes

It depends which type of a project you use - managed or not, but basically yes, the same.

Please use plain text.