[Paraview] Building plugin with sources in different directory
Jérôme
jerome.velut at gmail.com
Sun Nov 29 15:57:00 EST 2009
Yes, I think this is the cause. Your MyFilter/CMakeLists should define the
project and different variables such as the include folders. You asked me
out-of-list for my usual configurations: You may want to take a look at
http://github.com/jeromevelut/Chiron
This is a work-in-progress Medical Imaging Paraview plugin. Checkout the
Chiron-PoC branch (proof-of-concept). The structure will not change. In your
case, your root folder looks like my ./Modules/ folder and your ./plugin is
the same as my ./Plugins
HTH,
Jerome
2009/11/29 pat marion <pat.marion at kitware.com>
> 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
>>
>
>
> _______________________________________________
> 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/d8aa2106/attachment.htm>
More information about the ParaView
mailing list