I would use execute_process and call cmake -E. If you want a deep copy, you can use the copy_directory command. Even better, you could create a symlink (if your platform supports it) with the create_symlink command. The latter can be achieved like this:<br>
<br><span style="font-family: courier new,monospace;">execute_process(COMMAND ${CMAKE_COMMAND} -E create_symlink ${CMAKE_SOURCE_DIR}/path/to/www</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> ${CMAKE_BINARY_DIR}/path/to/www)</span><br>
<br>Hope this helps!<br><br><div class="gmail_quote">On Mon, Mar 30, 2009 at 4:42 PM, Bian Jiang <span dir="ltr"><<a href="mailto:borderj@gmail.com">borderj@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;">
<p>Copying directory from source tree to binary tree. For example: How to copy www to bin folder.</p>
<p>work<br>©À©¤bin<br>©¸©¤src<br> ©À©¤doing<br> ©¦ ©¸©¤www<br> ©À©¤include<br> ©¸©¤lib</p>
<p>Thanks.<br clear="all"><br>-- <br>Bian Jiang<br>Blog: <a href="http://www.wifihack.net/" target="_blank">http://www.wifihack.net/</a><br><br></p>
<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>