[CMake] Create shortcuts in "application folder" for OS-X with CPack

James Bigler jamesbigler at gmail.com
Mon Mar 1 12:44:23 EST 2010


I don't think there is anything specific in packagemaker.  By the way, CPack
uses the command line version of packagemaker that has different options
than the GUI version - see the man page.

You can do a post install script to set up the link, though.  Make sure you
use a full path to the script in your tree when specifying the scripts:
${CMAKE_CURRENT_SOURCE_DIR}/installscripts/postinstall.sh.
http://www.cmake.org/Wiki/CMake:CPackPackageGenerators#PackageMaker_.28OSX_only.29

Information on the three different scripts (when they execute and what the
arguments stand for) can be found here:
http://s.sudre.free.fr/Stuff/PackageMaker_Howto.html

Look down for the section titled "What about scripts?"

James

On Mon, Mar 1, 2010 at 5:41 AM, Frank Stappers <f.p.m.stappers at tue.nl>wrote:

> Hello,
>
> Currently, I want to create a DMG installer with CPack using
> PackageMaker. I partially succeed, e.g. the binaries are installed in
> /usr/bin and can be executed using a terminal. For some of the
> applications/bundles I want to create a short-cut in the Application
> folder. Unfortunately, I'm unable find a way in which this can be
> achieved in the CMake's/CPack's documentation. So I was wondering, how
> to achieve it. Any help would be appreciated.
>
> Kind Regards,
> Frank Stappers
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/CMake_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/listinfo/cmake
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20100301/1e9856ae/attachment.htm>


More information about the CMake mailing list