I agree with this sentiment.<br><br>Use GetPrerequisites.cmake to gather the list of dlls that your stuff depends on, and then use some INSTALL(FILES commands to install the dll files.<br><br>If there are issues with GetPrerequisites, email the list or enter an issue in the bug tracker and let&#39;s make it work.<br>
<br>One of the main reasons for *not* doing this in CMake automatically is to make people think about the DLLs they really need installed with their programs and to consider the licensing issues involved for each of them.<br>
<br>Forcing you to explicitly list them in your CMakeLists.txt files is a good way to get you to consider the implications of bundling DLLs with your project. If it was entirely automatic and just worked, we might make it &quot;too easy&quot; for you to violate a redistribution or licensing agreement. (Unintentionally, of course...)<br>
<br><br>HTH,<br>David<br><br><br><div class="gmail_quote">On Wed, Jan 28, 2009 at 5:59 PM, Mike Arthur <span dir="ltr">&lt;<a href="mailto:mike@mikearthur.co.uk">mike@mikearthur.co.uk</a>&gt;</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;">
<div class="Ih2E3d">On Wednesday 28 January 2009 20:41:38 Pau Garcia i Quiles wrote:<br>
&gt; Is it possible to install a target&#39;s dependencies using the INSTALL(<br>
&gt; TARGET ... ) signature? I. e. something like INSTALL ( TARGET mytarget<br>
&gt; INSTALL_DEPENDENCIES ) which goes through the parameters of<br>
&gt; TARGET_LINK_LIBRARIES and installs them too.<br>
</div>The GetPrerequisites is designed exactly for this. It&#39;s a bit tricky to use<br>
but I use it to install dependencies for my executables.<br>
<font color="#888888">--<br>
Cheers,<br>
Mike Arthur<br>
<a href="http://mikearthur.co.uk/" target="_blank">http://mikearthur.co.uk/</a><br>
</font><div><div></div><div class="Wj3C7c">_______________________________________________<br>
CMake mailing list<br>
<a href="mailto:CMake@cmake.org">CMake@cmake.org</a><br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
</div></div></blockquote></div><br>