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.

inside custom component

Native Development

Reply
New Developer
plungeint
Posts: 51
Registered: ‎03-10-2012
My Device: PlayBook
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: 1,512
Registered: ‎12-18-2012
My Device: PlayBook, Z10, DAC

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 Device: PlayBook
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,068
Registered: ‎11-24-2011
My Device: PlayBook
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.