[vtkusers] find VTK library dependencies automatically

Dr. X xunlei at renci.org
Mon Feb 7 11:57:37 EST 2011


BTW, http://www.vtk.org/Wiki/CMake:How_To_Find_Libraries mentions how to 
deal with components within a package, i.e. Qt by specifying

find_package(Qt COMPONENTS QtOpenGL QtXml REQUIRED)

Is there a reason why VTK is not set up the same way?
Best,
xunlei

On 2/7/2011 11:55 AM, Dr. X wrote:
> Hi All,
>
> Would you please give me some hint on how to find out VTK library 
> dependencies (automatically)?
> When I build an application involving VTK, there are in general many 
> libraries to be included. I don't quite know which library a 
> particular VTK class belongs to. I am using CMake to create the build 
> file.
> Are there any tricks to let CMake automatically find VTK library 
> dependencies and add them into the build file? Thanks a lot.
> Best,
> xunlei

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20110207/23d8ffba/attachment.htm>


More information about the vtkusers mailing list