On May 29, 2009, at 11:49 AM, Timothy M. Shead wrote:

Tobias Sauerwein wrote:
Hi Everyone
In my attempt to get cmake/cpack to produce a propper OS X bundle, I hit a problem. We use a launcher script written in applescript which is compiled in the build process. Before producing the bundle with cpack we simply copied the compiled 'applet' file over to the actual bundle. When I set CPACK_BUNDLE_STARTUP_COMMAND to point to the applet it is getting copied over but renamed to the bundle name. Can I prevent that somehow or can I run a script right after cmake/cpack has finished putting the bundle together to do some final touches?

Tobias:

My experience when I was writing the bundle generator was that the startup command only worked if it matched the bundle name. From your question there must be some way to control what gets executed when a user double-clicks the bundle. Info.plist?

Cheers,
Tim

--
Timothy M. Shead
Data Analysis & Visualization (1424)
Sandia National Laboratories
505-284-0139

from inside the info.plist:

        <key>CFBundleExecutable</key>
        <string>QImporter_debug</string>

You can set that to what ever you want. I'm pretty sure that the executable _should_ be in the "MacOS" directory otherwise you can probably put in a relative path: "../bin/myexecutable"

_________________________________________________________
Mike Jackson                  mike.jack...@bluequartz.net
BlueQuartz Software                    www.bluequartz.net
Principal Software Engineer                  Dayton, Ohio

_______________________________________________
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

Reply via email to