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

GEnerating source list cmakelists.txt #44

Open
asmodehn opened this issue Jul 8, 2014 · 1 comment
Open

GEnerating source list cmakelists.txt #44

asmodehn opened this issue Jul 8, 2014 · 1 comment
Assignees

Comments

@asmodehn
Copy link
Owner

asmodehn commented Jul 8, 2014

Instead of dynamically globbing the sources, which is fine for a small project, but troublesome for a big project, we should :

  • check if there is a CMakeLists.txt in the source folder
  • if there isnt we can generate it by globbing ( good for small projects )
  • if there is, then we can just include||add_subdirectory it to use it.

This way an upper build chain can generate the sourcelist cmakelists.txt file, and cmake will rerun automatically when detecting a change, and keeping the cached values.

In the case of small projects, cmake will autogenerate its own sourcelist CMakelists.txt. Therefore the behavior will be the same as before for the first run.
The manual step of adding a file will have to be manual... unless we find way to detect a change in the directory contents.. ( signature of filenames or so... )

@asmodehn asmodehn self-assigned this Jul 31, 2014
@asmodehn
Copy link
Owner Author

Very basic feature implemented. waiting for usage feedback...

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

No branches or pull requests

1 participant