projectGenerator icon indicating copy to clipboard operation
projectGenerator copied to clipboard

idea: using src folder as a reference - blue folder

Open dimitre opened this issue 1 year ago • 5 comments

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

dimitre avatar Mar 03 '24 01:03 dimitre

+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.

artificiel avatar May 23 '24 19:05 artificiel

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.

dimitre avatar May 24 '24 01:05 dimitre

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!

artificiel avatar May 26 '24 20:05 artificiel

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

dimitre avatar May 26 '24 21:05 dimitre