<br><br><div class="gmail_quote">On Sun, Jul 5, 2009 at 5:14 PM, Karol Krizka <span dir="ltr"><<a href="mailto:kkrizka@gmail.com">kkrizka@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi there,<br>
<br>
Is there a generic way to have CMake copy (or link to) required files<br>
(ei: movies) into an out-of-source build directory? </blockquote><div><br>If symlinks work for you, you can do:<br><br>execute_process(COMMAND ${CMAKE_COMMAND} -E create_symlink old new)<br><br><br>If what you really want to do is create a copy, you can change the 'create_symlink' option with 'copy' (for individual files) or 'copy_directory' (for entire directories). However, it looks like for your use case you can get away with symlinks, if your platform allows them, that is.<br>
<br>Cheers,<br><br>Adolfo<br><br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">When I build in an<br>
out-of-source directory, I would also like to test from the same<br>
directory without having to take any additional steps.<br>
<br>
--<br>
Cheers,<br>
Karol Krizka<br>
<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Adolfo Rodríguez Tsouroukdissian<br><br>Robotics engineer<br>PAL ROBOTICS S.L<br><a href="http://www.pal-robotics.com">http://www.pal-robotics.com</a><br>Tel. +34.93.414.53.47<br>
Fax.+34.93.209.11.09<br>