[CMake] Copy Files in Windows C Project

Alan Gutierrez alan at prettyrobots.com
Sat Feb 25 04:09:48 EST 2012


I was looking for a way to copy files into the Debug or Release directory of a Visual Studio 10 project, that might also work for other forms of project, like NMAKE. I ended up using add_custom_command.

My CMakeLists.txt at GitHub:

https://github.com/bigeasy/verity/blob/65830bff4a0a08785eb75f01451cb1a9ac16f456/CMakeLists.txt

Seems like a kludge to launch a program to copy a file. Copying a file seems like a common task in a project build. Is there a canonical way to do this?Or are there many ways and this is as good as any?

--
Alan Gutierrez - @bigeasy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20120225/2310a7db/attachment.htm>


More information about the CMake mailing list