cmake improvements
Re: cmake improvements
Indeed, it does have that problem. But it does prevent non-source files from being included, so it's preferable over the current solution. However, if we want to prevent people having to re-run CMake after each git pull or manual addition of files we'll have to explicitly specify the source files again, just like you say.
Re: cmake improvements
I am not sure if we understand each other. We currently are specifying the source files (just not the hpp/cpp part). This works nicely except for a few rare edge cases.
The problem of including non-source files could be easily addressed by just adjusting the GLOB part of the macro. No need for any larger changes.
The problem of including non-source files could be easily addressed by just adjusting the GLOB part of the macro. No need for any larger changes.
Re: cmake improvements
Oh, my bad! I thought your solution had the same pitfalls as mine. In that case, disregard my suggestion and fix the macro to exclude .hidden files and other garbage.
Re: cmake improvements
Fix in cmakefix branch. Testing welcome.