<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.6000.16640" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=094563313-18042008><FONT face="Courier New" 
color=#0000ff 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 class=094563313-18042008></SPAN>&nbsp;</DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> David Cole [mailto:david.cole@kitware.com] 
<BR><B>Sent:</B> Friday, April 18, 2008 13:35<BR><B>To:</B> 
d.1234567890@qualiant.at<BR><B>Cc:</B> CMake@cmake.org<BR><B>Subject:</B> Re: 
[CMake] Problems with Apple OSX Bundles<BR></FONT><BR></DIV>
<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 &lt;<A 
href="mailto:d.1234567890@qualiant.at">d.1234567890@qualiant.at</A>&gt; 
wrote:<BR>
<BLOCKQUOTE class=gmail_quote 
style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">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">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></BODY></HTML>