[CMake] Small, realistic Cpack example

Boudewijn Rempt boud at valdyas.org
Wed Sep 17 02:08:05 EDT 2008


On Tuesday 16 September 2008, Mike Jackson wrote:
> After some tinkering this afternoon with a small cmake project on OS X
> (based on Qt4) I was able to use the latest bits from CMake CVS to
> create a stand alone OS X bundle that correctly runs install_name_tool
> on the .app bundle and copies needed libraries into the bundle.
>
> I have a small example project that uses just Qt4 is anyone is
> interested...

Oh, yes!

> Requirements: CMake CVS. OS X. Qt4
>
> Caveats: The new functionality places libraries in the same directory
> (MacOS) as the executable which (again philosophically only) kinda
> goes against what Apple would suggest BUT DOES WORK. David Cole who
> wrote the code was kind enough to add a hook into the code so that you
> can place dylibs in another directory if you want.
>
> I have a more complex example where I exploit that hook to place the
> Qt4 libraries and a few other 3rd party libs into MyApp.app/Contents/
> Libraries/*.dylib
>
> Again, if anyone wants to look at the latest bleeding edge feel free
> to email me. I am still discussing this solution/tweaks with the CMake
> devs...
>

Yes, I'm very interested, both in the simple and in the complex example. I've 
got CMake from cvs (in the first place to crib from, but I've got it 
installed, too).
-- 
Boudewijn Rempt | http://www.valdyas.org


More information about the CMake mailing list