@xkaraman: you can replace the files for modules as you consider better.
I said in another comment that making a common template for modules to be included would be likely good, but I was not sure if it is going to slow down, or if that is the best option, and not recalling any further decisions on this, I pushed with a script that I have for such repetitive updates for CMakeLists.txt in module folders.