[vtkusers] OS X Application Bundle How-to

Robbie Jaeger rjaeger at gmail.com
Mon Aug 18 19:31:12 EDT 2008


Thank you Sean.

I found an example like you said and here is how it works:
Simple add MACOSX_BUNDLE into the ADD_EXECUTABLE() function
e.g. ADD_EXECUTABLE(${PROJECT_NAME} MACOSX_BUNDLE main.cpp)

RJ

On Mon, Aug 18, 2008 at 4:00 PM, Sean McBride <sean at rogue-research.com>wrote:

> On 8/18/08 3:26 PM, Robbie Jaeger said:
>
> >I'm trying to compile a vtk program on OS X 10.5 as an application bundle
> so
> >that I can fully interact with the graphics window.  According to the FAQ,
> I
> >need to add the following lines to my CMakeLists.txt:
> >
> >IF(APPLE)
> >  SET(EXECUTABLE_FLAG MACOSX_BUNDLE)
> >ENDIF(APPLE)
> >
> >Unfortunately, no application bundle is made so I'm sure I have not done
> >something correctly.  Is anyone here familiar with this process?  Does it
> >matter where I have this section of code within my CMakeLists.txt file?
>
> Some of the VTK example do this correctly.  Try searching all of VTK for
> MACOSX_BUNDLE.
>
> --
> ____________________________________________________________
> Sean McBride, B. Eng                 sean at rogue-research.com
> Rogue Research                        www.rogue-research.com
> Mac Software Developer              Montréal, Québec, Canada
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20080818/0dc58fba/attachment.htm>


More information about the vtkusers mailing list