[CMake] MacOSX: looking for packaging examples
Daniel Franke
franke.daniel at gmail.com
Fri Nov 13 16:52:44 EST 2009
Hi all,
I'm new to Mac, but would like to use cmake's capabilities to create a nice
installer/package for a project. I read up on Bundles on developer.apple.com
and I have a fair idea of what I'd need.
There are some command-line tools that should go to /usr/bin or /usr/local/bin
and one graphical application (Qt4-based) that should be properly bundled in
its own fooproj.app (binary and some resources) which should be installed in
/Applications/proj/fooproj.app - here the 'proj' subdirectory would be in
preparation of later releases where more than one .app shall be installed.
Now, flagging the one executable in question as MACOSX_BUNDLE seems obvious
and actually builds fooproj.app/MacOS/fooproj. However, using 'PackageManager'
as CPACK_GENERATOR, the file is installed in /usr/${BUNDLE_DESTINATION}. Using
'Bundle' instead seems to be incompatible with MACOSX_BUNDLE (there where some
requests in this regard on this list before).
Looking for examples and howtos I found [1], but unfortunately, the page is
from 2006 and mostly(?) outdated.
Could somebody point me where google failed to send me to? Or maybe provide a
working packaging example of the setup described above? Btw, cmake is 2.6.x,
installed via fink.
Thanks
Daniel
[1] http://www.cmake.org/Wiki/CMake:Bundles_And_Frameworks
More information about the CMake
mailing list