Try this:<div>INSTALL(DIRECTORY ${SRCDIR}/ DESTINATION destdir/newname)<br><br></div><div>(note the trailing slash after ${SRCDIR} and the /newname after destdir...)</div><div><br></div><div>Let us know if it works... I'm 99% sure that's the way to do it.</div>
<div><br></div><div>Lack of a trailing slash means install this directory, trailing slash means install everything in this directory.</div><div><br></div><div><br><div class="gmail_quote">On Wed, Dec 9, 2009 at 7:21 AM, Nathan Huesken <span dir="ltr"><<a href="mailto:cmake@lonely-star.org">cmake@lonely-star.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi,<br>
<br>
I can install a directory in cmake doing:<br>
<br>
INSTALL(DIRECTORY ${SRCDIR} DESTINATION destdir)<br>
<br>
which will create a dir under destdir with the name of the source<br>
directory. Now I want to do this, but name the destination directory<br>
differently than the original.<br>
<br>
Can this be done?<br>
Thanks!<br>
Nathan<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></div>