[Paraview] Building plugin with sources in different directory

David Doria daviddoria at gmail.com
Sun Nov 29 12:08:54 EST 2009


On Sun, Nov 29, 2009 at 11:48 AM, Dave Partyka <dave.partyka at kitware.com> wrote:
> Is there a MyPlugin.h file and is it in the same directory as the .cxx? If I
> recall correctly the ADD_PARAVIEW_PLUGIN sets up client/server wrappings and
> makes an assumption that each source file you give it has a header file.

There is indeed a MyPlugin.h that is in the same directory as
MyPlugin.cxx. What I think the problem is though is the CMakeLists.txt
is not in the same directory as those source files.

The setup is like this
..../MyFilter/MyFilter.cxx
..../MyFilter/MyFilter.h
..../MyFilter/CMakeLists.txt
..../MyFilter/plugin/MyFilter.xml
..../MyFilter/plugin/CMakeLists.txt

The MyFilter CMakeLists SUBDIRS the plugin directory. The
plugin/CMakeLists.txt has

ADD_PARAVIEW_PLUGIN(MyFilter "1.0"
  SERVER_MANAGER_XML MyFilter.xml
SERVER_MANAGER_SOURCES ../MyFilter.cxx
)

I think the problem is that it is looking in ..../MyFilter/plugin for
the .h file. Am I misunderstanding? Is there a way to tell it where to
look (in this case, ../)?

Thanks,

David


More information about the ParaView mailing list