07-05-2012 11:31 AM
After creating a default Cascades project which put C++ class source files in the src folder, if I add a new class within a subfolder of src, the build process does not compile any of the cpp files in the subfolders.
Is this possible? It is hard to organise large projects without being able to use subfolders.
Solved! Go to Solution.
07-06-2012 09:11 AM - edited 07-06-2012 09:13 AM
Look at sample cascadescookbookcpp.
Or just play with moving files to subfolders in momentics.
The directory needs to be added to the project. This is done automatically if you move the file from within momentics.
Stuart
07-06-2012 11:36 AM
I created the class under src in Momentics, then I created the subfolder under src, also within Momentics and finally dragged the file into the subfolder, within Momentics. This did not work; performing a clean build, the cpp file in the subfolder is never compiled.
I've tried adding a new folder on the same level as src, such as in cascadescookbookcpp and that doesn't work either.
I've tried creating both a Folder and a Source Folder in Momentics. No difference.
For cascadescookbookcpp, I noticed that in "C/C++ General" > "Paths and Symbols" > "Source Location" that only /cascadescookbookcpp/src is listed so I don't know how the cpp files in the recipes folder are being compiled, especially since it is not of type "Source Folder"
Any further help would be appreciated.
Thanks!
07-06-2012 12:57 PM
Ok, so you need to edit your .pro file and add the sources there.
02-01-2013 01:22 PM
Can you explain what to add to the pro file to have the source in subfolders recognized?