build: Generate camel-case headers with cmake module
* CMakeLists.txt: Include ECMGenerateHeaders. * cmake/modules/ECMGenerateHeaders.cmake: New. * src/CMakeLists.txt: Use ecm_generate_headers instead of a manual loop to generate the camel-case headers.
The ECM cmake module is copied from KDE's extra-cmake-modules. I have
just changed the copyright notices to GNU style and I have added the
license text verbatim.
- GnuPG-bug-id: T7262