GetPrerequisites.cmake is intended to be used from inside a CMake -P script, although there&#39;s nothing to prevent you from using it from a CMakeLists.txt. You could write a .cmake script that executes at install time to gather up the list of (presumably copy-able) 3rd party libraries and copy them into the install tree...<br>
<br>I am working on a similar script for embedding dylibs into .app bundles on the Mac. I am trying hard not to make it too Mac-centric in the hopes that it can be generalized to Windows, Linux and maybe more in the end.<br>
<br>Is there anything beyond copying the libraries that you would want in such a script that would make it &quot;more elegant&quot;...?<br><br>Thx,<br>David<br><br><br><div class="gmail_quote">On Fri, May 2, 2008 at 7:46 AM, Hendrik Sattler &lt;<a href="mailto:post@hendrik-sattler.de">post@hendrik-sattler.de</a>&gt; 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,<br>
<br>
I try to include third party libraries when creating the Windows package. However, I didn&#39;t find an elegant way, yet, to do this.<br>
<br>
GetPrerequisites.cmake is fairly hard to use as including and using it makes it run at the wrong time. Running it in a CODE install command may work but doesn&#39;t work nicely with InstallRequiredSystemLibraries.cmake.<br>

Any simple solutions?<br>
<br>
HS<br>
<br>
_______________________________________________<br>
CMake mailing list<br>
<a href="mailto:CMake@cmake.org" target="_blank">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>
</blockquote></div><br>