[CMake] Problems with Apple OSX Bundles

Dieter Oberkofler d.1234567890 at qualiant.at
Fri Apr 18 09:35:09 EDT 2008


I have tried but only the definitions of the last SET(MACOSX_BUNDLE_*) calls
are used for both executables.
 

  _____  

From: David Cole [mailto:david.cole at kitware.com] 
Sent: Friday, April 18, 2008 13:35
To: d.1234567890 at qualiant.at
Cc: CMake at cmake.org
Subject: Re: [CMake] Problems with Apple OSX Bundles


You need to do the SET calls *before* the ADD_EXECUTABLE calls. The
ADD_EXECUTABLE uses the current value of those variables to configure an
Info.plist file for a bundle app...

HTH,
David



On Fri, Apr 18, 2008 at 3:23 AM, Dieter Oberkofler
<d.1234567890 at qualiant.at> wrote:


I'm using CMake 2.4.4 on the Apple OSX platform and have problems in getting
CMake to generate correct bundles when specifying more then one target
executable.

In principle my CMakeLists.txt file looks as follows:
...
ADD_EXECUTABLE(LJS_001, MACOSX_BUNDLE ...)
SET(MACOSX_BUNDLE_BUNDLE_NAME LJSApplication)
SET(MACOSX_BUNDLE_BUNDLE_GUI_IDENTIFIER "com.qualiant.LJS")
...
ADD_EXECUTABLE(ODS_001, MACOSX_BUNDLE ...)
SET(MACOSX_BUNDLE_BUNDLE_NAME ODSExample)
SET(MACOSX_BUNDLE_BUNDLE_GUI_IDENTIFIER "com.qualiant.ODSExample")
...

When now building the two targets, only the bundle settings (e.g. the
MACOSX_BUNDLE_BUNDLE_GUI_IDENTIFIER values) from the last target are used.

What am I doing wrong?
What is the relationship between the executables and the bundle definition?

Any help is appreciated.

Thank you,
-D


_______________________________________________
CMake mailing list
CMake at cmake.org
http://www.cmake.org/mailman/listinfo/cmake



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20080418/3a7a6de3/attachment.htm>


More information about the CMake mailing list