projectGenerator
projectGenerator copied to clipboard
idea: using src folder as a reference - blue folder
untested idea: but if we just use "src" as a reference, all new files go to the project without re-generating with PG.
EDIT: if this is the case we should test with random file extensions there also, like .html and .txt to see if things work ok
+1, also better for projects that don't have the usual 3 (main.cpp + ofApp.h + ofApp.cpp) — at least in Xcode they all get added and show up as red missing files.
I've tried this one with no success. no luck trying to add to Build Phases -> compile sources.
alternatively I can change PG template to have all files from src listed and added recursively, as it happens with any addons folder.
Ah well that would be a good start to solve fresh generation (I often use single-file projects…), but your original idea would be better. I wonder if the problem is related to the target for .cpp? (Or is « compile source » an equivalent of setting the target?)
But yeah a scan at PG time would be great nonetheless!
I didnt have luck by trying to add a reference "src" or ofMain.cpp manually to the files to be compiled Try if you have time and if you find a way we can change the template