<div>Hi Benedikt Birkenbach, Andinet Enquobahrie and Kevin H. Hobbs,</div>  <div>&nbsp;</div>  <div>It's very kind of you to reply my message. Thank you very much.</div>  <div>&nbsp;</div>  <div>I applogize that I didn't explain my problem clearly. I'm using Windows XP, and Compiled the ITK prject in VC6. I followed the instructions in the mannual. The mannual says that creating two files in the new project, first:CMakeFiles,&nbsp;second:&nbsp;helloitk.cpp(same as helloworld.cxx, only different in filename). </div>  <div>&nbsp;</div>  <div>When using CMakesetup, it says "ITK_DIR NOT FOUND".</div>  <div>the CMakeList.txt is as follows:</div>  <div>&nbsp;</div>  <div>PROJECT(HelloITK)<BR>FIND_PACKAGE(ITK)<BR>IF(ITK_FOUND)<BR>&nbsp; INCLUDE(${ITK_USE_FILE})<BR>ELSE(ITK_FOUND)<BR>&nbsp; MESSAGE(FATAL_ERROR<BR>&nbsp; "ITK not found. Please set ITK_DIR.")<BR>ENDIF(ITK_FOUND)<BR>ADD_EXECUTABLE(helloitk helloitk.cpp )<BR>TARGET_LINK_LIBRARIES(helloitk ITKCommon)</div>  <div>&nbsp;</div> 
 <div>When I set the ITK_DIR mannually, and then build, OK.</div>  <div>&nbsp;</div>  <div>But every time, I must set ITK_DIR mannually, How to make it automatic??</div>  <div>&nbsp;</div>  <div>Thank you.</div>  <div>&nbsp;</div>  <div>Regards,</div>  <div>univmercury</div>  <div>&nbsp;</div>  <div>&nbsp;</div><p>
                <hr size=1><a href="http://cn.mail.yahoo.com" target=blank> 
ÑÅ»¢1GÃâ·ÑÓÊÏä°Ù·Ö°Ù·ÀÀ¬»øÐÅ</a><br> 
<a href="http://cn.zs.yahoo.com" target=blank>ÑÅ»¢ÖúÊÖ-ËÑË÷¡¢É±¶¾¡¢·ÀɧÈÅ</a>