[Insight-users] How to set ITK_DIR automatic??
haifeng zhao
univmercury at yahoo.com.cn
Tue Feb 28 09:22:09 EST 2006
Hi Benedikt Birkenbach, Andinet Enquobahrie and Kevin H. Hobbs,
It's very kind of you to reply my message. Thank you very much.
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).
When using CMakesetup, it says "ITK_DIR NOT FOUND".
the CMakeList.txt is as follows:
PROJECT(HelloITK)
FIND_PACKAGE(ITK)
IF(ITK_FOUND)
INCLUDE(${ITK_USE_FILE})
ELSE(ITK_FOUND)
MESSAGE(FATAL_ERROR
"ITK not found. Please set ITK_DIR.")
ENDIF(ITK_FOUND)
ADD_EXECUTABLE(helloitk helloitk.cpp )
TARGET_LINK_LIBRARIES(helloitk ITKCommon)
When I set the ITK_DIR mannually, and then build, OK.
But every time, I must set ITK_DIR mannually, How to make it automatic??
Thank you.
Regards,
univmercury
---------------------------------
雅虎1G免费邮箱百分百防垃圾信
雅虎助手-搜索、杀毒、防骚扰
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/insight-users/attachments/20060228/676480a0/attachment.htm
More information about the Insight-users
mailing list