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
Posts: 51
Registered: ‎03-10-2012
My Device: PlayBook
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

Developer
Posts: 1,523
Registered: ‎12-18-2012
My Device: Z30, Z10 LE, DevAlpha C, PlayBook

Re: Relative paths to .h includes

Hi,

You can add them to INCLUDEPATH in .pro file:

INCLUDEPATH += yourDir

Andrey Fidrya, @zmeyc on twitter
New Developer
Posts: 51
Registered: ‎03-10-2012
My Device: PlayBook

Re: Relative paths to .h includes

is that the same than doing:

 

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

 

thanks

Developer
Posts: 1,068
Registered: ‎11-24-2011
My Device: PlayBook

Re: Relative paths to .h includes

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