<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
BTW, <a href="http://www.vtk.org/Wiki/CMake:How_To_Find_Libraries">http://www.vtk.org/Wiki/CMake:How_To_Find_Libraries</a>
mentions how to deal with components within a package, i.e. Qt by
specifying<br>
<span class="Apple-style-span" style="border-collapse: separate;
color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-style:
normal; font-variant: normal; font-weight: normal; letter-spacing:
normal; line-height: normal; orphans: 2; text-indent: 0px;
text-transform: none; white-space: normal; widows: 2;
word-spacing: 0px; font-size: medium;"><span
class="Apple-style-span" style="font-family: sans-serif;
font-size: 13px; line-height: 19px;">
<pre style="padding: 1em; border: 1px dashed rgb(47, 111, 171); color: black; background-color: rgb(249, 249, 249); line-height: 1.1em;">find_package(Qt COMPONENTS QtOpenGL QtXml REQUIRED)</pre>
</span></span>Is there a reason why VTK is not set up the same
way?<br>
Best,<br>
xunlei<br>
<br>
On 2/7/2011 11:55 AM, Dr. X wrote:
<blockquote cite="mid:4D5023E7.7050209@renci.org" type="cite">Hi
All,
<br>
<br>
Would you please give me some hint on how to find out VTK library
dependencies (automatically)?
<br>
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.
<br>
Are there any tricks to let CMake automatically find VTK library
dependencies and add them into the build file? Thanks a lot.
<br>
Best,
<br>
xunlei
<br>
</blockquote>
<br>
</body>
</html>