<div>Hi Benedikt Birkenbach, Andinet Enquobahrie and Kevin H. Hobbs,</div> <div> </div> <div>It's very kind of you to reply my message. Thank you very much.</div> <div> </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, second: helloitk.cpp(same as helloworld.cxx, only different in filename). </div> <div> </div> <div>When using CMakesetup, it says "ITK_DIR NOT FOUND".</div> <div>the CMakeList.txt is as follows:</div> <div> </div> <div>PROJECT(HelloITK)<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>ADD_EXECUTABLE(helloitk helloitk.cpp )<BR>TARGET_LINK_LIBRARIES(helloitk ITKCommon)</div> <div> </div>
<div>When I set the ITK_DIR mannually, and then build, OK.</div> <div> </div> <div>But every time, I must set ITK_DIR mannually, How to make it automatic??</div> <div> </div> <div>Thank you.</div> <div> </div> <div>Regards,</div> <div>univmercury</div> <div> </div> <div> </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>