<div dir="ltr">I use ADD_CUSTOM_COMMAND to specify the exact C# compiler command line that I want...<div><br></div><div>There is much more to full C# language support than just getting it to compile/link successfully. (Involving .csproj files vs. .vcproj files, resources, references, strong naming, blah, blah, blah.....)</div>
<div><br></div><div><br></div><div>HTH,</div><div>David</div><div><br><br><div class="gmail_quote">On Fri, Oct 17, 2008 at 6:07 AM, Mathieu Malaterre <span dir="ltr">&lt;<a href="mailto:mathieu.malaterre@gmail.com">mathieu.malaterre@gmail.com</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="Ih2E3d">On Fri, Oct 17, 2008 at 11:24 AM, Mathieu Malaterre<br>
&lt;<a href="mailto:mathieu.malaterre@gmail.com">mathieu.malaterre@gmail.com</a>&gt; wrote:<br>
&gt;&gt;&gt; just yesterday Mathieu Malaterre wrote that he is working on a c#<br>
&gt;&gt;&gt; implementation: <a href="http://www.mail-archive.com/cmake@cmake.org/msg16699.html" target="_blank">http://www.mail-archive.com/cmake@cmake.org/msg16699.html</a><br>
&gt;&gt;<br>
&gt;&gt; Pretty funny :)<br>
&gt;&gt; Anyway I did contact (private email) Eric, and will try to get things going.<br>
&gt;<br>
&gt; Ok I got the try compile + building executable working here:<br>
&gt;<br>
&gt; <a href="https://gdcm.svn.sf.net/viewvc/gdcm/Sandbox/CMakeCSharp/" target="_blank">https://gdcm.svn.sf.net/viewvc/gdcm/Sandbox/CMakeCSharp/</a><br>
&gt;<br>
&gt; There is no intermediate representation in C#, and I could not figure<br>
&gt; out how to skip the object building part, so for now I simply copy src<br>
&gt; file to &#39;object&#39; file, so that I can reference &lt;OBJECTS&gt; during the<br>
&gt; executable linking.<br>
&gt;<br>
&gt; If some cmake guru could comment, I&#39;d really appreciate.<br>
<br>
<br>
</div>Quick question, here is how one create executable in C#:<br>
<br>
 &nbsp;SET(CMAKE_CSharp_LINK_EXECUTABLE<br>
 &nbsp; &nbsp;&quot;&lt;CMAKE_CSharp_COMPILER&gt; &lt;FLAGS&gt; &lt;OBJECTS&gt; -out:&lt;TARGET&gt;.exe<br>
&lt;LINK_LIBRARIES&gt;&quot;)<br>
<br>
The problem here is that i need to prepend each added libary using<br>
&quot;/r&quot; , I could not figure out which flag dictate that (for now<br>
&lt;LINK_LIBRARIES&gt; expand to &#39;foo.dll&#39;, while I need &#39;/r:foo.dll&#39;).<br>
<div><div></div><div class="Wj3C7c"><br>
thanks<br>
<br>
--<br>
Mathieu<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>
</div></div></blockquote></div><br></div></div>