<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">I just remembered that I forgot to paste that:<br>
<br>
cmake_minimum_required(VERSION 2.6)<br>
<br>
PROJECT(crop)<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 "crop")<br>
ADD_EXECUTABLE(${PROJECTNAME} crop.cpp)<br>
TARGET_LINK_LIBRARIES(${PROJECTNAME} ${ITK_LIBRARIES} )<br>
<div style="font-family: Times New Roman; color: #000000; font-size: 16px">
<hr tabindex="-1">
<div style="direction: ltr;" id="divRpF77028"><font color="#000000" face="Tahoma" size="2"><b>From:</b> Girish Mallya Udupi [indianzeppelin@gmail.com]<br>
<b>Sent:</b> Friday, 29 August 2014 8:25 p.m.<br>
<b>To:</b> Gib Bogle<br>
<b>Cc:</b> insight-users@itk.org<br>
<b>Subject:</b> Re: [ITK] [ITK-users] Strange Visual Studio 2012 problem<br>
</font><br>
</div>
<div></div>
<div>
<div dir="ltr">Could you paste the part of your CMakeLists.txt where you find/include ITK? </div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">On Fri, Aug 29, 2014 at 9:09 AM, Gib Bogle <span dir="ltr">
<<a href="mailto:g.bogle@auckland.ac.nz" target="_blank">g.bogle@auckland.ac.nz</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex; border-left:1px #ccc solid; padding-left:1ex">
<div>
<div style="direction:ltr; font-family:Tahoma; color:#000000; font-size:10pt">I've been using Visual Studio 10 for a few years without any problems. Now I have a new machine with Visual Studio 11 (i.e. 2012) installed. I have built ITK 64-bit, and installed
it in D:\ITK-VS11-x64. The ITK environment variable ITK_DIR = D:\ITK-VS11-x64. When I try to build my programs with the new libraries the build fails with (for example) this message:<br>
<br>
crop.cpp(18): fatal error C1083: Cannot open include file: 'itkImage.h': No such file or directory<br>
<br>
Looking at the Project Properties I see in Additional Include Directories: crop.cpp(18): \include\ITK-4.5<br>
For some reason cmake has not used the ITK_DIR prefix. In addition I see in Linker > Additional Dependencies that all the ITK libraries are expected to be in D:\ITK-VS11-x64\lib\Release\ - another nonexistent directory, although in this case the ITK_DIR prefix
has been used.<br>
<br>
This is a bit of a mess. I presume the problem lies with cmake. My version is 2.8.12.2, which I would have thought was recent enough - maybe it's too recent. Has anyone else run into this problem, and is there a solution?<br>
<br>
Thanks<span class="HOEnZb"><font color="#888888"><br>
Gib</font></span></div>
</div>
<br>
_____________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at<br>
<a 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 href="http://www.kitware.com/products/protraining.php" target="_blank">http://www.kitware.com/products/protraining.php</a><br>
<br>
Please keep messages on-topic and check the ITK FAQ at:<br>
<a 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 href="http://public.kitware.com/mailman/listinfo/insight-users" target="_blank">http://public.kitware.com/mailman/listinfo/insight-users</a><br>
<br>
_______________________________________________<br>
Community mailing list<br>
<a href="mailto:Community@itk.org" target="_blank">Community@itk.org</a><br>
<a href="http://public.kitware.com/mailman/listinfo/community" target="_blank">http://public.kitware.com/mailman/listinfo/community</a><br>
<br>
</blockquote>
</div>
<br>
<br clear="all">
<div><br>
</div>
-- <br>
<div dir="ltr">Regards,<br>
Girish</div>
</div>
</div>
</div>
</div>
</body>
</html>