[CMake] OS X Bundle startup command

Timothy M. Shead tshead at sandia.gov
Fri May 29 11:49:59 EDT 2009


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



More information about the CMake mailing list