add metadata source files to cmake