[Paraview] Errors when using find_package(ParaView REQUIRED)

David Doria daviddoria at gmail.com
Fri Aug 10 09:49:18 EDT 2012


On Tue, Dec 13, 2011 at 4:51 PM, David Doria <daviddoria at gmail.com> wrote:
> On Tue, Dec 13, 2011 at 3:31 PM, Utkarsh Ayachit
> <utkarsh.ayachit at kitware.com> 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


More information about the ParaView mailing list