<div>LINK_INTERFACE_LIBRARIES was exactly what I needed. Thanks!<br></div><div>As for moving the .lib that was generated for the .dll, I&#39;ve made piece with keeping that at its default output location. CMake is smarter with linking than I originally thought.</div>
<br><br><div class="gmail_quote">On Fri, Jun 26, 2009 at 12:28 AM, Tyler Roscoe <span dir="ltr">&lt;<a href="mailto:tyler@cryptio.net">tyler@cryptio.net</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On Thu, Jun 25, 2009 at 09:54:11PM -0500, Nathan Paul wrote:<br>
&gt; When I tell MessageTest to link to Messages (using target_link_libraries and<br>
&gt; specifying the Messages library), the Google Protocol Buffer library is<br>
&gt; added as a dependency. This is undesired, since the library is already<br>
&gt; linked statically to the Messages library, and is not directly needed by the<br>
<br>
</div>It&#39;s past my bedtime but I think you want to play with<br>
LINK_INTERFACE_LIBRARIES:<br>
<br>
<a href="http://www.cmake.org/cmake/help/cmake2.6docs.html#prop_tgt:LINK_INTERFACE_LIBRARIES" target="_blank">http://www.cmake.org/cmake/help/cmake2.6docs.html#prop_tgt:LINK_INTERFACE_LIBRARIES</a><br>
<div class="im"><br>
&gt; MessageTest executable. Also, the .lib file generated by the build does not<br>
&gt; get placed into Build/bin, which is what I would like. What is the best way<br>
&gt; to do this?<br>
<br>
</div>Look at ARCHIVE_OUTPUT_DIRECTORY.<br>
<font color="#888888"><br>
tyler<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Nathan Paul<br><a href="http://nathan.effigyband.net">http://nathan.effigyband.net</a><br>262.378.1007<br>