[vtkusers] cmake and tcl wrapping my own subclasses
Clinton Stimpson
clinton at elemtech.com
Wed Jan 28 11:53:20 EST 2004
Hi,
Lets say I have my own class derived from a VTK class and I want to
package that up into a library that can be loaded into TCL.
I have not successfully used cmake to generate a makefile that will
automatically wrap my class for me. Or used cmake ever for anything
with custom commands. Writing my own makefiles has been easier for me.
I did write my own makefile and used swig to wrap it, and I can load it
but it doesn't use the ::New() to create the object, and the Delete
method is not available. I'm assuming the vtkWrapTcl does something
special there, so I tried that and can't get it to create the wrapper.
I've tried looking at the CMakeLists.txt files to get what I need, but
can't quite make it work.
Does anyone have a simple CMakeList.txt file which has a list of
sources, and will create tcl wrappers and create a shared library?
Thanks,
Clint
More information about the vtkusers
mailing list