Say I have written a VTK filter and the directory structure is as follows:<br>.../MyFilter/MyFilter.h<br>.../MyFilter/MyFilter.cxx<br>.../MyFilter/CMakeLists.txt<br><br>And it is built in<br>.../MyFilter/bin<br><br>I now want to make a Paraview plugin for it. I would like to keep it very separate though so I can still have something to hand out to people who just want the filter, and then have something extra that I could also provide if people want the plugin. I tried to do the following:<br>
<br>Make a .../MyFilter/plugin directory. <br>Put the MyFilter.xml and a new CMakeLists.txt in that directory.<br>set SERVER_MANAGER_SOURCES to ../vtkMyFilter.cxx (which is .../MyFilter/MyFilter.cxx)<br><br>I then made .../MyFilter/plugin/bin and tried to build the plugin in this directory. The problem seems to be that since vtkMyFilter.cxx includes "vtkMyFilter.h", this header cannot be found since we are no longer in the same directory that vtkMyFilter.h exists in.<br>
<br>I guess ideally I would like to have a .../MyFilter/CMakeListsPlugin.txt and build it in .../MyFilter/plugin_bin, but as far as I understand cmake will only let you read the configuration from a file named exactly CMakeLists.txt.<br>
Is there an easy solution to this? How do you guys do it? <br><br clear="all">Thanks,<br><br>David<br>