Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Folders in Momentics: (3 Items)
   
Folders in Momentics  
Hi,

I have made small projects in Momentics based on the QNX C++ project and now feel ready to move onto cleverer things.  I
 added a folder and some source files to it and and want to get that code to compile too.  When I build the project, 
only the files in the root folder build.

I have looked around on the Internet and seen documents about make files and recurse files and compiler settings etc but
 I don't feel that should be necessary simply to compile files that are in folders.

Can you help?

Many thanks,
Ant
AW: Folders in Momentics  
Hi Ant,

in the C/C++ perspective, open your project's context menu
and hit "Properties..." (at the very bottom).

From the list on the left of the dialog popping up, choose
"QNX C/C++ Project", then select the "Compiler" tab.  At
the top, there's a combo box labelled "Category:" -- select
"Extra sources paths" here.

You'll be presented an (empty) list and a couple of buttons 
to add extra paths with. To use a subfolder in your project,
press the "Project..." button, then select your project
subfolder in the little tree opening up and hit Ok...

Kind regards,
- Thomas Haupt

> -----Ursprungliche Nachricht-----
> Von: Ant Pace [mailto:community-noreply@qnx.com]
> Gesendet: 01 October 2008 15:28
> An: momenticsgs-community
> Betreff: Folders in Momentics
> 
> 
> Hi,
> 
> I have made small projects in Momentics based on the QNX C++ 
> project and now feel ready to move onto cleverer things.  I 
> added a folder and some source files to it and and want to 
> get that code to compile too.  When I build the project, only 
> the files in the root folder build.
> 
> I have looked around on the Internet and seen documents about 
> make files and recurse files and compiler settings etc but I 
> don't feel that should be necessary simply to compile files 
> that are in folders.
> 
> Can you help?
> 
> Many thanks,
> Ant
> 
> _______________________________________________
> QNX Momentics Getting Started
> http://community.qnx.com/sf/go/post14305
> 
> 
Re: AW: Folders in Momentics  
> You'll be presented an (empty) list and a couple of buttons 
> to add extra paths with. To use a subfolder in your project,
> press the "Project..." button, then select your project
> subfolder in the little tree opening up and hit Ok...

Found it!  Great, thanks.
Ant