<div class="gmail_quote">On Tue, Apr 20, 2010 at 5:11 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="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div class="im">On Tuesday 20 April 2010 03:05:48 pm Timothy Shead wrote:<br>
&gt; On 4/20/10 1:53 PM, Clinton Stimpson wrote:<br>
&gt; &gt;&gt; Can you give me an example using DragNDrop to combine two CMake-built<br>
&gt; &gt;&gt; executables into a single bundle?  My impression (perhaps dated) is that<br>
&gt; &gt;&gt; I&#39;d have to do some magic around making one of them a &quot;source&quot; file of<br>
&gt; &gt;&gt; the other, so I could use MACOSX_PACKAGE_LOCATION to embed it in the<br>
&gt; &gt;&gt; final bundle.<br>
&gt; &gt;<br>
&gt; &gt; CMake does that (cmake and ccmake commandline apps get put into the<br>
&gt; &gt; cmake-gui bundle).<br>
&gt; &gt; To test, just set CMAKE_INSTALL_PREFIX=/ and run &quot;cpack -G DragNDrop&quot; on<br>
&gt; &gt; it. It does a set(CMAKE_INSTALL_PREFIX=/CMake.app/Contents) trick to put<br>
&gt; &gt; everything in the bundle.<br>
&gt; &gt; Did you need a different example than that?<br>
&gt;<br>
&gt; I accept that this works, I just wasn&#39;t aware it was being done with the<br>
&gt; DragNDrop generator.  So it&#39;s a fantastic example, except that I still<br>
&gt; don&#39;t see the magic where CMAKE_INSTALL_PREFIX magically morphs from &quot;/&quot;<br>
&gt; for cmake-gui to &quot;/CMake.app/Contents&quot; for everything else.  If you can<br>
&gt; point me to where that happens, I&#39;d love to ditch the BundleGenerator.<br>
&gt;<br>
<br>
</div>The little section starts in CMake/CMakeLists.txt line 428, and it also sets<br>
CMAKE_BUNDLE_LOCATION which is used for the install() command of the bundle<br>
itself.<br>
But like David said, it could use work.  And I do it a different way that is<br>
simpler to me.<br><br></blockquote><div><br>We should improve it first and *then* copy it around... I would not base new work on the existing state of things w.r.t. this topic. It&#39;s too confusing.<br><br></div></div>