<div class="gmail_quote">On Tue, Apr 20, 2010 at 5:11 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: 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>
> On 4/20/10 1:53 PM, Clinton Stimpson wrote:<br>
> >> Can you give me an example using DragNDrop to combine two CMake-built<br>
> >> executables into a single bundle? My impression (perhaps dated) is that<br>
> >> I'd have to do some magic around making one of them a "source" file of<br>
> >> the other, so I could use MACOSX_PACKAGE_LOCATION to embed it in the<br>
> >> final bundle.<br>
> ><br>
> > CMake does that (cmake and ccmake commandline apps get put into the<br>
> > cmake-gui bundle).<br>
> > To test, just set CMAKE_INSTALL_PREFIX=/ and run "cpack -G DragNDrop" on<br>
> > it. It does a set(CMAKE_INSTALL_PREFIX=/CMake.app/Contents) trick to put<br>
> > everything in the bundle.<br>
> > Did you need a different example than that?<br>
><br>
> I accept that this works, I just wasn't aware it was being done with the<br>
> DragNDrop generator. So it's a fantastic example, except that I still<br>
> don't see the magic where CMAKE_INSTALL_PREFIX magically morphs from "/"<br>
> for cmake-gui to "/CMake.app/Contents" for everything else. If you can<br>
> point me to where that happens, I'd love to ditch the BundleGenerator.<br>
><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's too confusing.<br><br></div></div>