upgraded cmake to generate filelist in source file. useful in case an automatic tool generate sourcefiles.