[Paraview] Building plugin with sources in different directory

pat marion pat.marion at kitware.com
Sun Nov 29 12:21:44 EST 2009


Do you need to include_directories(../) ?

Pat

On Sun, Nov 29, 2009 at 12:08 PM, David Doria <daviddoria at gmail.com> wrote:

> 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
> _______________________________________________
> 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/29fc662b/attachment.htm>


More information about the ParaView mailing list