<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<META content="MSHTML 6.00.2800.1400" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi all,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Sorry for the messy message a few minutes
ago. Had a little "accident" when sending it out. :) I resend the
question here.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I am trying to build an application based on ITK.
There are a few .cxx, .txx, .h files written by myself. I wrote a CMakeLists.txt
file and tried to generate </FONT></DIV>
<DIV><FONT face=Arial size=2>a workspace of MSVC++ 6.0 on a Windows XP machine
by using CMakeSetup. But the configuration failed and the error messages said
that could not find</FONT></DIV>
<DIV><FONT face=Arial size=2>those .cxx files in the directory specified. I am
new on writing the CMakeLists.txt file, I attached the CMakeLists.txt in the
following, could any expert </FONT></DIV>
<DIV><FONT face=Arial size=2>please give me some advice on what I did wrong
here?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Thanks a lot!</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Ying</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Here is the CMakeLists.txt:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>PROJECT( MarquardtRegistration )</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>INCLUDE_REGULAR_EXPRESSION(".*")</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>FIND_PACKAGE(ITK)<BR>IF(ITK_FOUND)<BR>
INCLUDE(${ITK_USE_FILE})<BR>ELSE(ITK_FOUND)<BR>
MESSAGE(FATAL_ERROR<BR>
"Cannot build without ITK. Please set
ITK_DIR.")<BR>ENDIF(ITK_FOUND)</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial
size=2>INCLUDE_DIRECTORIES(<BR>${MarquardtRegistration_SOURCE_DIR}<BR>${MarquardtRegistration_BINARY_DIR}<BR>)</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>SET(MarquardtRegistration_SRCS<BR>
MarquardtRegistration.cxx<BR> LevenbergMarquardtOptimizer.cxx<BR>
Numerical_Recipes_util.cxx<BR>)</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>ADD_EXECUTABLE(MarquardtRegistration<BR>
"${MarquardtRegistration_SRCS}")</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>TARGET_LINK_LIBRARIES(MarquardtRegistration
ITKNumerics ITKBasicFilters ITKIO)</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV></BODY></HTML>