<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Thanks Bill, I should have remembered seeing this come up here on
the mailing list. I did look on the ITK v4 Migration Guide, but
couldn't see anything about it.<br>
<br>
Gib<br>
<br>
On 9/01/2012 6:17 a.m., Bill Lorensen wrote:
<blockquote
cite="mid:CADZJ4hMEUgp0wuf2PFz1NK-L9f4_5sddEeTHt_WKtO6iXqBDcw@mail.gmail.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
Rather than explicitly listing itk libraries you must use<br>
${ITK_LIBRARIES}. This also works for earlier versions of ITK<br>
<br>
In your case change:<br>
TARGET_LINK_LIBRARIES(threshold ITKCommon ITKIO )<br>
to<br>
TARGET_LINK_LIBRARIES(threshold ${ITK_LIBRARIES} )<br>
<br>
<div class="gmail_quote">On Sat, Jan 7, 2012 at 9:15 PM, Gib Bogle
<span dir="ltr"><<a moz-do-not-send="true"
href="mailto:g.bogle@auckland.ac.nz">g.bogle@auckland.ac.nz</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt
0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
I have been building a program using ITK-3.20.0, 32-bit with
VS8 and 64-bit with mingw64. I have now installed and built
ITK-4.0.0 with VS10 Win64. All seems OK, but when I try to
build my program with VS10 I get a link error: cannot open
input file 'ITKIO.lib'.<br>
<br>
CMakeLists.txt is unchanged:<br>
<br>
PROJECT(threshold)<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>
ADD_EXECUTABLE(threshold threshold.cpp)<br>
TARGET_LINK_LIBRARIES(threshold ITKCommon ITKIO )<br>
<br>
I see that both the ITK directory structure and the file
naming have been changed significantly since 3.20.0. Whereas
before the library files were in bin\release, now they are in
lib\release, and now the version number is attached to the
file names, e.g. there is ITKCommon-4.0.lib. Nowhere can I
find a file called ITKIO-4.0.lib, although there are many
files of the form ITKIO***.lib.<br>
<br>
How should I modify CMakeLists.txt to build my program with
VS10 Win64 on Windows 7?<br>
<br>
Thanks<br>
Gib<br>
_____________________________________<br>
Powered by <a moz-do-not-send="true"
href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at<br>
<a moz-do-not-send="true"
href="http://www.kitware.com/opensource/opensource.html"
target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Kitware offers ITK Training Courses, for more information
visit:<br>
<a moz-do-not-send="true"
href="http://www.kitware.com/products/protraining.html"
target="_blank">http://www.kitware.com/products/protraining.html</a><br>
<br>
Please keep messages on-topic and check the ITK FAQ at:<br>
<a moz-do-not-send="true"
href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a moz-do-not-send="true"
href="http://www.itk.org/mailman/listinfo/insight-users"
target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
</blockquote>
</div>
<br>
<br clear="all">
<br>
-- <br>
Unpaid intern in BillsBasement at noware <br>
</blockquote>
</body>
</html>