[CMake] Minimal Info.plist

David Cole david.cole at kitware.com
Tue Apr 20 17:13:17 EDT 2010


On Tue, Apr 20, 2010 at 5:11 PM, Clinton Stimpson <clinton at elemtech.com>wrote:

> On Tuesday 20 April 2010 03:05:48 pm Timothy Shead wrote:
> > On 4/20/10 1:53 PM, Clinton Stimpson wrote:
> > >> Can you give me an example using DragNDrop to combine two CMake-built
> > >> executables into a single bundle?  My impression (perhaps dated) is
> that
> > >> I'd have to do some magic around making one of them a "source" file of
> > >> the other, so I could use MACOSX_PACKAGE_LOCATION to embed it in the
> > >> final bundle.
> > >
> > > CMake does that (cmake and ccmake commandline apps get put into the
> > > cmake-gui bundle).
> > > To test, just set CMAKE_INSTALL_PREFIX=/ and run "cpack -G DragNDrop"
> on
> > > it. It does a set(CMAKE_INSTALL_PREFIX=/CMake.app/Contents) trick to
> put
> > > everything in the bundle.
> > > Did you need a different example than that?
> >
> > I accept that this works, I just wasn't aware it was being done with the
> > DragNDrop generator.  So it's a fantastic example, except that I still
> > don't see the magic where CMAKE_INSTALL_PREFIX magically morphs from "/"
> > for cmake-gui to "/CMake.app/Contents" for everything else.  If you can
> > point me to where that happens, I'd love to ditch the BundleGenerator.
> >
>
> The little section starts in CMake/CMakeLists.txt line 428, and it also
> sets
> CMAKE_BUNDLE_LOCATION which is used for the install() command of the bundle
> itself.
> But like David said, it could use work.  And I do it a different way that
> is
> simpler to me.
>
>
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20100420/83b2f74a/attachment.htm>


More information about the CMake mailing list