<br><font size=2 face="sans-serif">Hi,</font>
<br>
<br><font size=2 face="sans-serif">You can also look at the way the PointSprite
plugin has been structured (path_to_paraview_src/Plugins/PointSprite)</font>
<br>
<br><font size=2 face="sans-serif">In both Rendering and Graphics subdirectory,
there is the usual CMakeLists.txt that creates a library usable from VTK,
and in the ParaViewPlugin subdirectory, you have all the ParaView-related
stuff.</font>
<br><font size=2 face="sans-serif">The main difference are those lines
at the end of the Rendering and Graphics CmakeLists.txt : </font>
<br>
<br><font size=2 face="sans-serif"># -----------------------------------------------------------------------------</font>
<br><font size=2 face="sans-serif"># This make it easy for other projects
to get the list of files etc. in this</font>
<br><font size=2 face="sans-serif"># kit.</font>
<br><font size=2 face="sans-serif"># -----------------------------------------------------------------------------</font>
<br><font size=2 face="sans-serif"># needed by vtkExportKit.cmake</font>
<br><font size=2 face="sans-serif">include(${VTK_CMAKE_DIR}/vtkExportKit.cmake)</font>
<br><font size=2 face="sans-serif">IF(NOT VTK_INSTALL_NO_DEVELOPMENT)</font>
<br><font size=2 face="sans-serif">&nbsp; STRING(REGEX REPLACE &quot;^/&quot;
&quot;&quot; VTK_INSTALL_PACKAGE_DIR_CM24 &quot;${VTK_INSTALL_PACKAGE_DIR}&quot;)</font>
<br><font size=2 face="sans-serif">ENDIF(NOT VTK_INSTALL_NO_DEVELOPMENT)</font>
<br>
<br><font size=2 face="sans-serif">vtk_export_kit2(</font>
<br><font size=2 face="sans-serif">&nbsp; &quot;CSCS_PointSprite_Rendering&quot;
</font>
<br><font size=2 face="sans-serif">&nbsp; &quot;POINTSPRITE_RENDERING&quot;
</font>
<br><font size=2 face="sans-serif">&nbsp; ${CMAKE_CURRENT_BINARY_DIR} </font>
<br><font size=2 face="sans-serif">&nbsp; &quot;${KIT_SRCS}&quot;</font>
<br><font size=2 face="sans-serif">)</font>
<br>
<br><font size=2 face="sans-serif">This will create a &quot;Kit&quot; in
the binary directory</font>
<br><font size=2 face="sans-serif">and in the ParaViewPlugin CmakeLists.txt,
you have : </font>
<br><font size=2 face="sans-serif">set(PLUGIN_NAME CSCS_PointSprite_Plugin)</font>
<br>
<br><font size=2 face="sans-serif">set(CS_WRAP_Rendering)</font>
<br><font size=2 face="sans-serif">include(${PointSpritePlugin_BINARY_DIR}/Rendering/vtkCSCS_PointSprite_RenderingKit.cmake)</font>
<br><font size=2 face="sans-serif">foreach(class ${VTK_POINTSPRITE_RENDERING_CLASSES})</font>
<br><font size=2 face="sans-serif">&nbsp; set(CS_WRAP_Rendering ${CS_WRAP_Rendering}
${VTK_POINTSPRITE_RENDERING_HEADER_DIR}/${class}.h)</font>
<br><font size=2 face="sans-serif">endforeach(class)</font>
<br>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; add_paraview_plugin(${PLUGIN_NAME}
&quot;1.0&quot;</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; SERVER_MANAGER_SOURCES
</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &quot;${SM_SOURCES};${CS_WRAP_Rendering};${CS_WRAP_Graphics}&quot;</font>
<br><font size=2 face="sans-serif">....</font>
<br><font size=2 face="sans-serif">)</font>
<br>
<br><font size=2 face="sans-serif">What this piece of magic does is wrap
all the classes in the Rendering and Graphics subdirectories in the server-manager
laguage, so that you can use those classes from proxies, xml and in the
paraview python console.</font>
<br>
<br><font size=2 face="sans-serif">Stephane<br>
</font>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=40%><font size=1 face="sans-serif"><b>jerome.velut@gmail.com</b>
</font>
<br><font size=1 face="sans-serif">Envoyé par : paraview-bounces@paraview.org</font>
<p><font size=1 face="sans-serif">29/11/2009 21:57</font>
<td width=59%>
<table width=100%>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">A</font></div>
<td><font size=1 face="sans-serif">pat.marion@kitware.com</font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td><font size=1 face="sans-serif">paraview@paraview.org</font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">Objet</font></div>
<td><font size=1 face="sans-serif">Re: [Paraview] Building plugin with
sources in different directory</font></table>
<br>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br>
<br>
<br><font size=3>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 </font><a href=http://github.com/jeromevelut/Chiron><font size=3 color=blue><u>http://github.com/jeromevelut/Chiron</u></font></a><font size=3><br>
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<br>
<br>
HTH,<br>
Jerome<br>
</font>
<br><font size=3>2009/11/29 pat marion &lt;</font><a href=mailto:pat.marion@kitware.com><font size=3 color=blue><u>pat.marion@kitware.com</u></font></a><font size=3>&gt;</font>
<br><font size=3>Do you need to include_directories(../) ?</font><font size=3 color=#8f8f8f><br>
<br>
Pat</font>
<br><font size=3><br>
</font>
<br><font size=3>On Sun, Nov 29, 2009 at 12:08 PM, David Doria &lt;</font><a href=mailto:daviddoria@gmail.com target=_blank><font size=3 color=blue><u>daviddoria@gmail.com</u></font></a><font size=3>&gt;
wrote:</font>
<br><font size=3>On Sun, Nov 29, 2009 at 11:48 AM, Dave Partyka &lt;</font><a href=mailto:dave.partyka@kitware.com target=_blank><font size=3 color=blue><u>dave.partyka@kitware.com</u></font></a><font size=3>&gt;
wrote:<br>
&gt; Is there a MyPlugin.h file and is it in the same directory as the
.cxx? If I<br>
&gt; recall correctly the ADD_PARAVIEW_PLUGIN sets up client/server wrappings
and<br>
&gt; makes an assumption that each source file you give it has a header
file.<br>
</font>
<br><font size=3>There is indeed a MyPlugin.h that is in the same directory
as<br>
MyPlugin.cxx. What I think the problem is though is the CMakeLists.txt<br>
is not in the same directory as those source files.<br>
<br>
The setup is like this<br>
..../MyFilter/MyFilter.cxx<br>
..../MyFilter/MyFilter.h<br>
..../MyFilter/CMakeLists.txt<br>
..../MyFilter/plugin/MyFilter.xml<br>
..../MyFilter/plugin/CMakeLists.txt<br>
<br>
The MyFilter CMakeLists SUBDIRS the plugin directory. The<br>
plugin/CMakeLists.txt has<br>
<br>
ADD_PARAVIEW_PLUGIN(MyFilter &quot;1.0&quot;<br>
&nbsp;SERVER_MANAGER_XML MyFilter.xml<br>
SERVER_MANAGER_SOURCES ../MyFilter.cxx<br>
)<br>
<br>
I think the problem is that it is looking in ..../MyFilter/plugin for<br>
the .h file. Am I misunderstanding? Is there a way to tell it where to<br>
look (in this case, ../)?</font>
<br><font size=3><br>
Thanks,<br>
<br>
David<br>
_______________________________________________<br>
Powered by </font><a href=http://www.kitware.com/ target=_blank><font size=3 color=blue><u>www.kitware.com</u></font></a><font size=3><br>
<br>
Visit other Kitware open-source projects at </font><a href=http://www.kitware.com/opensource/opensource.html target=_blank><font size=3 color=blue><u>http://www.kitware.com/opensource/opensource.html</u></font></a><font size=3><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: </font><a href=http://paraview.org/Wiki/ParaView target=_blank><font size=3 color=blue><u>http://paraview.org/Wiki/ParaView</u></font></a><font size=3><br>
<br>
Follow this link to subscribe/unsubscribe:</font><font size=3 color=blue><u><br>
</u></font><a href=http://www.paraview.org/mailman/listinfo/paraview target=_blank><font size=3 color=blue><u>http://www.paraview.org/mailman/listinfo/paraview</u></font></a>
<br>
<br><font size=3><br>
_______________________________________________<br>
Powered by </font><a href=http://www.kitware.com/ target=_blank><font size=3 color=blue><u>www.kitware.com</u></font></a><font size=3><br>
<br>
Visit other Kitware open-source projects at </font><a href=http://www.kitware.com/opensource/opensource.html target=_blank><font size=3 color=blue><u>http://www.kitware.com/opensource/opensource.html</u></font></a><font size=3><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: </font><a href=http://paraview.org/Wiki/ParaView target=_blank><font size=3 color=blue><u>http://paraview.org/Wiki/ParaView</u></font></a><font size=3><br>
<br>
Follow this link to subscribe/unsubscribe:</font><font size=3 color=blue><u><br>
</u></font><a href=http://www.paraview.org/mailman/listinfo/paraview target=_blank><font size=3 color=blue><u>http://www.paraview.org/mailman/listinfo/paraview</u></font></a><font size=3><br>
</font>
<br><tt><font size=2>_______________________________________________<br>
Powered by www.kitware.com<br>
<br>
Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html<br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView<br>
<br>
Follow this link to subscribe/unsubscribe:<br>
http://www.paraview.org/mailman/listinfo/paraview<br>
</font></tt>
<br><pre>


Ce message et toutes les pièces jointes (ci-après le 'Message') sont établis à l'intention exclusive des destinataires et les informations qui y figurent sont strictement confidentielles. Toute utilisation de ce Message non conforme à sa destination, toute diffusion ou toute publication totale ou partielle, est interdite sauf autorisation expresse.

Si vous n'êtes pas le destinataire de ce Message, il vous est interdit de le copier, de le faire suivre, de le divulguer ou d'en utiliser tout ou partie. Si vous avez reçu ce Message par erreur, merci de le supprimer de votre système, ainsi que toutes ses copies, et de n'en garder aucune trace sur quelque support que ce soit. Nous vous remercions également d'en avertir immédiatement l'expéditeur par retour du message.

Il est impossible de garantir que les communications par messagerie électronique arrivent en temps utile, sont sécurisées ou dénuées de toute erreur ou virus.
____________________________________________________

This message and any attachments (the 'Message') are intended solely for the addressees. The information contained in this Message is confidential. Any use of information contained in this Message not in accord with its purpose, any dissemination or disclosure, either whole or partial, is prohibited except formal approval.

If you are not the addressee, you may not copy, forward, disclose or use any part of it. If you have received this message in error, please delete it and all copies from your system and notify the sender immediately by return message.

E-mail communication cannot be guaranteed to be timely secure, error or virus-free.
</pre>