How is that?  Could you provide a brief example of which function to call?  I looked through the code and wasn&#39;t sure what I could call since almost all the copies are done using execute_process which runs at configure time.<br>

<br>James<br><br><div class="gmail_quote">On Fri, Feb 26, 2010 at 1:12 PM, Clinton Stimpson <span dir="ltr">&lt;<a href="mailto:clinton@elemtech.com">clinton@elemtech.com</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;">

<br>
Using BundleUtilities.cmake on each of the bundles should copy that library<br>
into each bundle.<br>
<br>
Clint<br>
<div><div></div><div class="h5"><br>
On Friday 26 February 2010 11:02:12 am James Bigler wrote:<br>
&gt; I have a project that builds a group of mac bundles that depend on a<br>
&gt;  library I also compile.  I need to install the library within the bundle<br>
&gt;  to get it to be relocatable, but I have no way of doing this without<br>
&gt;  creating a circular dependency.<br>
&gt;<br>
&gt; src/CMakeLists.txt:<br>
&gt;<br>
&gt; add_subdirectory(mylib)<br>
&gt; add_subdirectory(mysamples)<br>
&gt;<br>
&gt; src/mylib/CMakeLists.txt:<br>
&gt;<br>
&gt; add_library(mylib mylib.cpp mylib.h)<br>
&gt; set_target_properties(mylib PROPERTIES VERSION &quot;2.3.4&quot; SOVERSION &quot;1&quot;)<br>
&gt; install(TARGETS mylib RUNTIME DESTINATION bin LIBRARY DESTINATION lib<br>
&gt; ARCHIVE DESTINATION lib)<br>
&gt;<br>
&gt; src/mysamples/CMakeLists.txt:<br>
&gt;<br>
&gt; foreach(sample fun lessfun)<br>
&gt;   add_executable(${sample} ${sample}.cpp MACOSX_BUNDLE)<br>
&gt;   target_link_libraries(${sample} mylib)<br>
&gt;<br>
&gt;   install(TARGETS ${sample} DESTINATION samples)<br>
&gt;   # I really want to install mylib in the bundle, but I don&#39;t have access<br>
&gt;  to the library target anymore.<br>
&gt;   install(TARGETS mylib DESTINATION samples/${sample}.app/Contents/MacOS)<br>
&gt; endforeach()<br>
&gt;<br>
&gt; I really want to install my library within the bundle, but I don&#39;t have<br>
&gt; access to the library outside of the mylib subdirectory.  I can&#39;t create<br>
&gt; install targets in the mylib install directory, because I don&#39;t have the<br>
&gt; list of bundles to install it to until after I parse the mysamples<br>
&gt;  directory and it&#39;s too late.<br>
&gt;<br>
&gt; I tried to use the LOCATION_${CMAKE_BUILD_CONFIG} variable, but because I&#39;m<br>
&gt; using the VERSION and SOVERSION properties on my library I only get one of<br>
&gt; the symlinks and not all three (libmylib.dylib -&gt; libmylib.2.3.4.dylib,<br>
&gt; libmylib.1.dylib -&gt; libmylib.2.3.4.dylib, and libmylib.2.3.4.dylib).<br>
&gt;<br>
&gt; Is there some way I can get mylib to also install with my executable<br>
&gt; bundles?<br>
&gt;<br>
&gt; James<br>
&gt;<br>
</div></div></blockquote></div><br>