[CMake] Ruby & Python Binding with SWIG in CMake

2008-05-12 Thread David Graf
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 bind

Re: [CMake] Ruby & Python Binding with SWIG in CMake

2008-05-12 Thread Eric Noulard
2008/5/12 David Graf <[EMAIL PROTECTED]>: > > 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 Rub

Re: [CMake] Ruby & Python Binding with SWIG in CMake

2008-05-12 Thread Alan W. Irwin
On 2008-05-12 11:00-0700 David Graf wrote: 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 i

Re: [CMake] Ruby & Python Binding with SWIG in CMake

2008-05-12 Thread David Graf
I managed to solve the problem by generating each SWIG module in a separate directory. But it is not possible to use one SWIG interface file for every module. Thus, I added in every directory a '.i' file that just includes the original '.i' file from the upper dir (%include ../test.i). David

Re: [CMake] Ruby & Python Binding with SWIG in CMake

2008-05-13 Thread Mathieu Malaterre
You definitely need a different directory if you are to generate multiple object files, dependencies are computed based on the .obj files... For instance the jpeg library is compiled three times, and need a 8, 12 and 16 subdir, while all the sources are within the parent directory: http://public.