<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns="http://www.w3.org/TR/REC-html40" xmlns:v = 
"urn:schemas-microsoft-com:vml" xmlns:o = 
"urn:schemas-microsoft-com:office:office" xmlns:w = 
"urn:schemas-microsoft-com:office:word" xmlns:m = 
"http://schemas.microsoft.com/office/2004/12/omml"><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">


<META content="MSHTML 6.00.2900.3199" name=GENERATOR>
<STYLE>@font-face {
        font-family: Calibri;
}
@page Section1 {size: 612.0pt 792.0pt; margin: 72.0pt 72.0pt 72.0pt 72.0pt; }
P.MsoNormal {
        FONT-SIZE: 11pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Calibri","sans-serif"
}
LI.MsoNormal {
        FONT-SIZE: 11pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Calibri","sans-serif"
}
DIV.MsoNormal {
        FONT-SIZE: 11pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Calibri","sans-serif"
}
A:link {
        COLOR: blue; TEXT-DECORATION: underline; mso-style-priority: 99
}
SPAN.MsoHyperlink {
        COLOR: blue; TEXT-DECORATION: underline; mso-style-priority: 99
}
A:visited {
        COLOR: purple; TEXT-DECORATION: underline; mso-style-priority: 99
}
SPAN.MsoHyperlinkFollowed {
        COLOR: purple; TEXT-DECORATION: underline; mso-style-priority: 99
}
SPAN.EmailStyle17 {
        COLOR: windowtext; FONT-FAMILY: "Calibri","sans-serif"; mso-style-type: personal-compose
}
.MsoChpDefault {
        mso-style-type: export-only
}
DIV.Section1 {
        page: Section1
}
</STYLE>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]--></HEAD>
<BODY lang=EN-GB vLink=purple link=blue>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=128265812-28112007>Hi 
Josef,</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=128265812-28112007></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=128265812-28112007>try 
this:</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=128265812-28112007></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face="Lucida Console" color=#0000ff size=2><SPAN 
class=128265812-28112007>add_library(Foo.Code source.cpp)</SPAN></FONT></DIV>
<DIV><FONT face="Lucida Console" color=#0000ff size=2><SPAN 
class=128265812-28112007>set_target_properties(Foo.Code PROPERTIES OUTPUT_NAME 
Foo)</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=128265812-28112007></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=128265812-28112007>It 
should create a target "Foo.Code" building a library 
"Foo.lib".</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=128265812-28112007></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=128265812-28112007>Best 
regards, Gerhard</SPAN></FONT></DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
  <DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma 
  size=2>-----Ursprüngliche Nachricht-----<BR><B>Gesendet:</B> Mittwoch, 28. 
  November 2007 13:53<BR><B>An:</B> cmake@cmake.org<BR><B>Betreff:</B> [CMake] 
  Creating librarys with different names from their 
targets.<BR><BR></FONT></DIV>
  <DIV class=Section1>
  <P class=MsoNormal>I&#8217;ve got a library which I want to build from a target 
  which has a different name.&nbsp; Is there any way of doing 
  this?<o:p></o:p></P>
  <P class=MsoNormal><o:p>&nbsp;</o:p></P>
  <P class=MsoNormal>If I do,<o:p></o:p></P>
  <P class=MsoNormal><o:p>&nbsp;</o:p></P>
  <P class=MsoNormal style="TEXT-INDENT: 36pt">ADD_LIBRARY(Foo 
  source.cpp)<o:p></o:p></P>
  <P class=MsoNormal><o:p>&nbsp;</o:p></P>
  <P class=MsoNormal>this creates a target called &#8216;Foo&#8217; which builds 
  &#8216;Foo.lib&#8217;.&nbsp; However I want the library &#8216;Foo.lib&#8217; to be built from a 
  target call &#8216;Foo.Code&#8217;.&nbsp; Is this possible?&nbsp; (I&#8217;ve not explained the 
  whole picture as it&#8217;s more complicated than this).<o:p></o:p></P>
  <P class=MsoNormal><o:p><FONT color=#0000ff 
  size=2></FONT></o:p>&nbsp;</P></DIV></BLOCKQUOTE></BODY></HTML>