<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>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.</div><div><br></div><div>My CMakeLists.txt at GitHub:</div><div><br></div><div><a href="https://github.com/bigeasy/verity/blob/65830bff4a0a08785eb75f01451cb1a9ac16f456/CMakeLists.txt">https://github.com/bigeasy/verity/blob/65830bff4a0a08785eb75f01451cb1a9ac16f456/CMakeLists.txt<br></a></div><div><a href="https://github.com/bigeasy/verity/blob/65830bff4a0a08785eb75f01451cb1a9ac16f456/CMakeLists.txt"><br></a></div><div><font class="Apple-style-span" color="#000000">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?</font></div><div><font class="Apple-style-span" color="#000000"><br></font></div><div><font class="Apple-style-span" color="#000000">--</font></div><div>Alan Gutierrez - @bigeasy</div></body></html>