On Tue, Dec 13, 2011 at 4:51 PM, David Doria <[email protected]> wrote: > On Tue, Dec 13, 2011 at 3:31 PM, Utkarsh Ayachit > <[email protected]> wrote: >> Oh, are you using FIND_PACKAGE(VTK) and FIND_PACKAGE(ParaView) in the >> source? Bet that's what causing the problem. I'm not sure that's going >> to work. Try just using ParaView OR VTK. > > That certainly works. The only problem I have with that is I have to do a > > if(buildPlugin) > use(Paraview) > else > use(VTK) > endif() > > in my root CMakeLists.txt. It would seem nicer to do > > if(buildPlugin) > add_subdirectory(Plugin) > endif() > > and in the Plugin/CMakeLists.txt do > > use(ParaView) > > Is there a pattern more similar to this that would only use one of them? > > Thanks, > > David
I just ran into this again, and found this old thread. Is there a way to find_package(VTK) at the root project level, and then optionally find_package(Paraview) in a subdirectory? The idea is a structure like this: https://github.com/daviddoria/PointSetSurfaceReconstruction 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
