So I would love to see a corollary to BundleUtilities.cmake for Mac on Windows and Linux, too.<div><br></div><div>Using GetPrerequisites to gather the set of dependent files is obviously the first step.<br><br></div><div>Then, on Windows, a function that installs all the dependent dlls to the same location as the executable would be awesome.</div>
<div><br></div><div>On Linux, I guess you would have to make sure everything you depend on is either already installed in its install path, or aware of your install path, or uses LD_LIBRARY_PATH -- the issues here are the ones I am least familiar with (compared to Windows and Mac anyhow).</div>
<div><br></div><div>I don't think this should ever be fully automated because of licensing and coyright issues. Technically, it is easy to gather the set of required files to make something work on a practical level. The issue will be: "hey, you're not allowed to copy *that* dll" because of such and such non-technical reason...</div>
<div><br></div><div>Having said all this, and that I would love to see it, I must admit: it is not presently on the radar for any CMake developers as far as I know. So, as always: patches welcome. :-)</div><div><br></div>
<div><br></div><div>HTH,</div><div>David</div><div><br></div><div><br><div class="gmail_quote">On Fri, Jul 17, 2009 at 3:05 PM, Clinton Stimpson <span dir="ltr"><<a href="mailto:clinton@elemtech.com">clinton@elemtech.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">So I'm using GetPrequisites.cmake to gather dependencies.<br>
Are there any examples, tips, etc.. for using this?<br>
<br>
With the results I'm getting back, I do a<br>
file(INSTALL ... ) because that's what I see in the cmake_installcmake file. Should it be documented?<br>
But these files I'm getting back are soft links to the real library. And the file(INSTALL ... ) just puts a softlink in my installation directory instead of a real library.<br>
<br>
Is there some higher level cmake function I should be calling to install libraries on Unix/Linux, similar to how there is BundleUtilties.cmake for Mac? Or ideally, is there one function I can use on all platforms to install some prerequisites?<br>
<br>
Thanks,<br>
Clint<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></div>