<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"><<a href="mailto:mathieu.malaterre@gmail.com">mathieu.malaterre@gmail.com</a>></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>
<<a href="mailto:mathieu.malaterre@gmail.com">mathieu.malaterre@gmail.com</a>> wrote:<br>
>>> just yesterday Mathieu Malaterre wrote that he is working on a c#<br>
>>> 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>
>><br>
>> Pretty funny :)<br>
>> Anyway I did contact (private email) Eric, and will try to get things going.<br>
><br>
> Ok I got the try compile + building executable working here:<br>
><br>
> <a href="https://gdcm.svn.sf.net/viewvc/gdcm/Sandbox/CMakeCSharp/" target="_blank">https://gdcm.svn.sf.net/viewvc/gdcm/Sandbox/CMakeCSharp/</a><br>
><br>
> There is no intermediate representation in C#, and I could not figure<br>
> out how to skip the object building part, so for now I simply copy src<br>
> file to 'object' file, so that I can reference <OBJECTS> during the<br>
> executable linking.<br>
><br>
> If some cmake guru could comment, I'd really appreciate.<br>
<br>
<br>
</div>Quick question, here is how one create executable in C#:<br>
<br>
SET(CMAKE_CSharp_LINK_EXECUTABLE<br>
"<CMAKE_CSharp_COMPILER> <FLAGS> <OBJECTS> -out:<TARGET>.exe<br>
<LINK_LIBRARIES>")<br>
<br>
The problem here is that i need to prepend each added libary using<br>
"/r" , I could not figure out which flag dictate that (for now<br>
<LINK_LIBRARIES> expand to 'foo.dll', while I need '/r:foo.dll').<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>