add platform cmake files and SourceTemplate