Some general thoughts about the kcfgc file:
- ForceStringFilename is unused with me having ported the only usage in killbots, so it should get deprecated
- SourceExtension this seems completely pointless to me, because the file gets automatically added to the target or list
- HeaderExtension I honestly don't think it is worth having an option for the file extension of a generated header. Only okteta makes use of it
- The File parameter seems redundant, we could just derive it from the file name
With the last 3 issues resolved we could also drop the parsing of the kcfgc file in cmake and avoid re-configuring of the project whenever anything in the file changes.
The kcfgfile "arg" attribute in combination with the singelton seems off. When looking at the usages kwin the values are set to the build-time configured ones. Being able to set those automatically in cmake would be a cleaner approach IMHO. Also I think it would make sense to offer an optional param in the constructor if no filename is explicitly set.