[CMake] How to duplicate a source file and rename it

Ke Gao ke.gao.ut at gmail.com
Fri Sep 21 17:59:54 EDT 2018


Hi,

In a project, I need to first duplicate a source file and rename it. For
example, I want to change "file.c" to "aaa_file.c", and after compiling, I
will delete it. This is similar to using "cp file.c aaa_file.c". How to
easily do this in CMake? I found "file" command doesn't work well for this.

Thank you very much.

-- 
..............................................................................................................................................
Ke Gao
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://cmake.org/pipermail/cmake/attachments/20180921/e594b024/attachment.html>


More information about the CMake mailing list