[Paraview] Building plugin with sources in different directory

Dave Partyka dave.partyka at kitware.com
Sun Nov 29 11:48:34 EST 2009


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.

On Sun, Nov 29, 2009 at 11:20 AM, David Doria <daviddoria at gmail.com> wrote:

> If I have my cxx and h files for my filter in ..../MyFilter
>
> then in ..../MyFilter/plugin I have the MyFilter.xml. I also have a
> CMakeLists.txt containing
>
> ADD_PARAVIEW_PLUGIN(MyPlugin "1.0"
>  SERVER_MANAGER_XML MyPlugin.xml
> SERVER_MANAGER_SOURCES ../MyPlugin.cxx
> )
>
> You'll notice the ../MyPlugin.cxx because the filter sources are not
> in the plugin directory.
>
> When I try to build I get an error:
> MyFilterClientServer.cxx error: MyFilter.h: No such file or directory
>
> I'm assuming this is because it is looking in the current directory.
> Is there a way to specify where the sources reside?
>
> Thanks,
>
> David
> _______________________________________________
> 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 ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://www.paraview.org/mailman/listinfo/paraview
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20091129/025a70df/attachment.htm>


More information about the ParaView mailing list