[CMake] Problems with Apple OSX Bundles

David Cole david.cole at kitware.com
Fri Apr 18 07:35:12 EDT 2008


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/2d49cd74/attachment.htm>


More information about the CMake mailing list