[CMake] Gathering up required shared libraries

Gregory Crosswhite gcrosswhite at gmail.com
Tue Aug 2 13:59:04 EDT 2011


On 8/2/11 9:28 AM, Clinton Stimpson wrote:
> You shouldn't need to copy GetPrerequisites and BundleUtilities.
>
> For Linux you can do:
> set_target_properties( ... PROPERTIES INSTALL_RPATH "\$ORIGIN/../lib")
>
> To get/usr/lib/  to be treated as non-system libraries, you can implement
> gp_resolved_file_type_override()
> to adjust that behavior.
> See gp_item_default_embedded_path() in GetPrerequisites for more information.
>
> And finally, to copy the dependents into lib/ instead of bin/, you can
> implement
> gp_item_default_embedded_path_override()
> to return a different path.
> See gp_resolved_file_type() in GetPrerequisites for more information.

Great!  I knew that there had to be a better way that I was simply 
missing.  Thanks a lot!  :-D

Cheers,
Greg
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20110802/f9132a90/attachment.htm>


More information about the CMake mailing list