asmodehn / wkcmake

Workshop CMake - For quick and easy CMake setup of project, based on simple folder and file naming conventions
BSD 2-Clause "Simplified" License
5 stars 2 forks source link

GEnerating source list cmakelists.txt #44

Open asmodehn opened 10 years ago

asmodehn commented 10 years ago

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

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 commented 10 years ago

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