Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

idea: using src folder as a reference. #485

Open
dimitre opened this issue Mar 3, 2024 · 4 comments
Open

idea: using src folder as a reference. #485

dimitre opened this issue Mar 3, 2024 · 4 comments

Comments

@dimitre
Copy link
Member

dimitre commented Mar 3, 2024

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

@artificiel
Copy link
Contributor

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

@dimitre
Copy link
Member Author

dimitre commented May 24, 2024

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.

@artificiel
Copy link
Contributor

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!

@dimitre
Copy link
Member Author

dimitre commented May 26, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants