<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7235.2">
<TITLE>Add pre-existing object file to linker line?</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->

<P><FONT SIZE=2 FACE="Arial">Hi,</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">Does anyone know how to add an explicit reference to a pre-existing object file (no related source file) to the link?</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">I've tried:</FONT>
</P>

<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2 FACE="Arial">ADD_EXECUTABLE(myapp mysrc1.c mysrc2. myexisiting.o)</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">If I perform the above CMake complains it doesn&#8217;t know how to build myexisiting.o.</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">FYI, my myexisiting.o is an embedded compiler's startup code that is delivered as a pre-built object.</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">&nbsp;- TrevK</FONT>
</P>

</BODY>
</HTML>