[CMake] example of cpack configuration for OS X

E. Wing ewmailing at gmail.com
Fri Sep 12 15:46:28 EDT 2008


Maybe not a good example, but here is an example nonetheless:

http://www.assembla.com/wiki/show/lua
and
http://www.assembla.com/wiki/show/luadocsuperforest

The dynamic library Lua is built either as an OS X framework or dylib.
Command line executables are also built which can get packaged. There
is a special case for the OS X framework where things are copied into
its bundle and the installer is also supposed to create symlinks to
reference these things in the bundle.

The LuaDoc superforest is an aggregate project that depends on all the
subprojects defining what is installed so it is just more of the same.


Building an .app might have some convenience APIs to help copy things
directly into your bundle. Look for the SET_TARGET_PROPERTIES I think.

But generally speaking, if you are building a typical Mac application
that is a self-contained .app bundle that can be drag-and-dropped,
then you should just make a plain DMG (or even zip) without a .pkg
installer and avoid CPack (which doesn't seem to support this).

The most recent flamewar on this topic was just this past week.
http://www.cocoabuilder.com/archive/message/cocoa/2008/9/9/217751

-Eric


On 9/12/08, Boudewijn Rempt <boud at valdyas.org> wrote:
> Hi,
>
> Is there somewhere a good example of a CMakeLists.txt file for a Qt4 app
> that needs to be built and made into a package (or a bundle, or maybe even
> both) for OS X with Qt included as frameworks.
>
> Boudewijn
>
> _______________________________________________
> CMake mailing list
> CMake at cmake.org
> http://www.cmake.org/mailman/listinfo/cmake
>


More information about the CMake mailing list