[CMake] Ruby & Python Binding with SWIG in CMake
Eric Noulard
eric.noulard at gmail.com
Mon May 12 17:33:31 EDT 2008
2008/5/12 David Graf <david.graf at 28msec.com>:
>
> Hello
>
> I have problems to generate Python and Ruby bindings with SWIG in CMake out
> of one SWIG interface file. In the following example, I have a small
> interface file and a CMake file that should generate Ruby and Python
> bindings. But the Ruby binding is not generated at all and the Python
> binding is broken because the two generation processes produce a library
> file with the same name (_test.so).
>
> Does someone know how to produce bindings from one interface for several
> languages? I need bindings for Ruby, Python, PHP, Java, C#.
I don't know but the CMake SWIG module author may answer :=)
However did you try to generate each SWIG module in a separate directory
and keep the ".i" interface file in the upper dir.
--
Erk
More information about the CMake
mailing list