Brad did some work recently where these properties can be specified as target properties rather than global CMake variables like this. See CVS (or 2.6) cmake --help-properties for this information:<br><br> MACOSX_BUNDLE<br>
Build an executable as an application bundle on Mac OS X.<br><br> When this property is set to true the executable when built on Mac OS<br> X will be created as an application bundle. This makes it a GUI<br>
executable that can be launched from the Finder.<br><br> The bundle Info.plist file is generated automatically. The following<br> target properties may be set to specify its content:<br> MACOSX_BUNDLE_INFO_STRING<br>
<br> MACOSX_BUNDLE_ICON_FILE<br> MACOSX_BUNDLE_GUI_IDENTIFIER<br> MACOSX_BUNDLE_LONG_VERSION_STRING<br> MACOSX_BUNDLE_BUNDLE_NAME<br> MACOSX_BUNDLE_SHORT_VERSION_STRING<br> MACOSX_BUNDLE_BUNDLE_VERSION<br>
MACOSX_BUNDLE_COPYRIGHT<br><br>If you are using CMake 2.6 (or CVS CMake) then try using SET_TARGET_PROPERTIES instead of setting the variables directly.<br><br><br>HTH,<br>David<br><br><br><div class="gmail_quote">
On Fri, Apr 18, 2008 at 9:35 AM, Dieter Oberkofler <<a href="mailto:d.1234567890@qualiant.at">d.1234567890@qualiant.at</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>
<div dir="ltr" align="left"><span><font color="#0000ff" face="Courier New" size="2">I have tried but only the definitions of the last
SET(MACOSX_BUNDLE_*) calls are used for both executables.</font></span></div>
<div dir="ltr" align="left"><span></span> </div><br>
<div dir="ltr" align="left" lang="en-us">
<hr>
<font face="Tahoma" size="2"><b>From:</b> David Cole [mailto:<a href="mailto:david.cole@kitware.com" target="_blank">david.cole@kitware.com</a>]
<br><b>Sent:</b> Friday, April 18, 2008 13:35<br><b>To:</b>
<a href="mailto:d.1234567890@qualiant.at" target="_blank">d.1234567890@qualiant.at</a><br><b>Cc:</b> <a href="mailto:CMake@cmake.org" target="_blank">CMake@cmake.org</a><br><b>Subject:</b> Re:
[CMake] Problems with Apple OSX Bundles<br></font><br></div><div><div></div><div class="Wj3C7c">
<div></div>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...<br><br>HTH,<br>David<br><br><br>
<div class="gmail_quote">On Fri, Apr 18, 2008 at 3:23 AM, Dieter Oberkofler <<a href="mailto:d.1234567890@qualiant.at" target="_blank">d.1234567890@qualiant.at</a>>
wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">I'm
using CMake 2.4.4 on the Apple OSX platform and have problems in
getting<br>CMake to generate correct bundles when specifying more then one
target<br>executable.<br><br>In principle my CMakeLists.txt file looks as
follows:<br>...<br>ADD_EXECUTABLE(LJS_001, MACOSX_BUNDLE
...)<br>SET(MACOSX_BUNDLE_BUNDLE_NAME
LJSApplication)<br>SET(MACOSX_BUNDLE_BUNDLE_GUI_IDENTIFIER
"com.qualiant.LJS")<br>...<br>ADD_EXECUTABLE(ODS_001, MACOSX_BUNDLE
...)<br>SET(MACOSX_BUNDLE_BUNDLE_NAME
ODSExample)<br>SET(MACOSX_BUNDLE_BUNDLE_GUI_IDENTIFIER
"com.qualiant.ODSExample")<br>...<br><br>When now building the two targets,
only the bundle settings (e.g. the<br>MACOSX_BUNDLE_BUNDLE_GUI_IDENTIFIER
values) from the last target are used.<br><br>What am I doing wrong?<br>What
is the relationship between the executables and the bundle
definition?<br><br>Any help is appreciated.<br><br>Thank
you,<br>-D<br><br><br>_______________________________________________<br>CMake
mailing list<br><a href="mailto:CMake@cmake.org" target="_blank">CMake@cmake.org</a><br><a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br></blockquote>
</div><br></div></div></div>
</blockquote></div><br>