Replaced file(GENERATE )
with file(COPY )
     file(RENAME )