<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none"><!--P{margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p>I am building applications using ITK on Windows 7, with cmake and Visual Studio 2010. The CMakeLists.txt file is very simple:</p>
<p><br>
</p>
<p>PROJECT(compress)<br>
FIND_PACKAGE(ITK)<br>
IF(ITK_FOUND)<br>
INCLUDE(${ITK_USE_FILE})<br>
ELSE(ITK_FOUND)<br>
MESSAGE(FATAL_ERROR<br>
"ITK not found. Please set ITK_DIR.")<br>
ENDIF(ITK_FOUND)<br>
<br>
set(PROJECTNAME "compress")<br>
ADD_EXECUTABLE(${PROJECTNAME} compress.cpp)<br>
TARGET_LINK_LIBRARIES(${PROJECTNAME} ${ITK_LIBRARIES} )<br>
</p>
<p><br>
</p>
<p>and the cmake command is:</p>
<p><br>
</p>
<p>cmake -G "Visual Studio 10 Win64"</p>
<p><br>
</p>
<p>The .vcproj file created has, in the Linker > Input > Additional Dependencies list not only what looks like all the ITK libraries (about 78) but also a whole lot of VTK libraries (about 35) and 3 Qt libraries. This is for a program that uses neither VTK
nor Qt. I don't understand why all these libraries are included. I guess it doesn't really matter, since they don't finish up in the .exe, but it is a nuisance because for some reason the Qt libraries that it expects are a different version from those on
the computer, which means I have to either delete those libraries from the list or change the version number. If I was having to do this just a couple of times it wouldn't be worth worrying about, but I am rebuilding on a new machine a large number of programs
that all have this issue.<br>
</p>
<p><br>
</p>
<p>It would help to have a better understanding of the system that generates this list. Maybe there is a simple way to prevent unwanted libraries from getting into the list.<br>
</p>
</body>
</html>