On Mon, May 11, 2009 at 6:35 PM, Ian Curington <[email protected]> wrote:
> Dear Mathieu,
>
> I noticed on http://www.nabble.com/Using-SWIG-%2B-C--td19970947.html#a19975983
> that you seem to be very close to having some Cmake+Swig+C# solution.
> I have working Cmake+Swig+Python (Xdmf), and am starting to extend it
> for .NET users. Do you have any hints, examples, projects?
> I'm particularly interested in the magic Cmake ADD_CUSTOM_COMMAND for Swig-C#,
> and surrounding structures.

This is all in GDCM project:

http://gdcm.svn.sourceforge.net/viewvc/gdcm/trunk/Wrapping/Csharp/CMakeLists.txt?view=markup

You'll see there is a section "OLDSTYLECSHARP" which use custom
command, while the other use the language extension mechanism in
cmake. I have never been able to finish up bug #7918

http://www.cmake.org/Bug/view.php?id=7918

hopefully in the long term this code will be more readable.

You need to be careful with SUBDIRS + ADD_CUSTOM_COMMAND, you will not
be able to express dependencies to outside directories. Right now the
gdcm libraries are build first and then the examples this is the
reason why it works.

2cts
-- 
Mathieu
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to