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

CMakeLists.txt #6

Closed
ghost opened this issue Apr 18, 2022 · 2 comments
Closed

CMakeLists.txt #6

ghost opened this issue Apr 18, 2022 · 2 comments

Comments

@ghost
Copy link

ghost commented Apr 18, 2022

image
This seems like a massive pain to do! you can do some automated things in cmake:

src/*.c*

this will fetch any files in src/ with any title and the extensions starting with .c* ie .cpp and cc and .c now you can also fetch folders inside folders

src/*/*.c*
src/*/*/*.c*
src/*/*/*/*.c*

and so on to how many paths it goes in
I'm pretty sure theres a way to do looping in cmake directories but I'm quite new
I just thought it would be more nicer not having to set every files name

Side note, since you're including .h files you could just do *.*

I'm sorry I haven't made a pull request for this, when I'm free and remember I will! :)

@ghost
Copy link
Author

ghost commented Apr 18, 2022

I've created #7 if you want to check it out

@SomePineaple
Copy link
Owner

Merged #7

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

1 participant