Hi Luis/Eric/All,<br><br>Thanks for your inputs. From my experience:-<br><br>You need to add:-<br># This is to find ITK<br>SET(ITK_DIR &quot;{MY_PATH}/Insight-binary&quot;)<br><br>after:-<br>PROJECT(Registration)<br>
<br>to compile any code &quot;outside the Insight directory&quot;. Is that right?<br><br>Thanks,<br>Balaji<br><br><div><span class="gmail_quote">On 4/18/06, <b class="gmail_sendername">Luis Ibanez</b> &lt;<a href="mailto:luis.ibanez@kitware.com">
luis.ibanez@kitware.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>Hi Eric,<br><br>Here is a CMakeLists.txt file that you can use for
<br>configuring and building this Registration example:<br><br><br>PROJECT(Registration)<br><br><br>FIND_PACKAGE(ITK REQUIRED)<br>IF(ITK_FOUND)<br>&nbsp;&nbsp; INCLUDE(${ITK_USE_FILE})<br>ENDIF(ITK_FOUND)<br><br>ADD_EXECUTABLE(ImageRegistration1 
ImageRegistration1.cxx )<br><br>TARGET_LINK_LIBRARIES(ImageRegistration1<br>&nbsp;&nbsp;&nbsp;&nbsp; ITKAlgorithms ITKBasicFilters ITKIO ITKCommon)<br><br><br><br>Copy this CMakeLists.txt file and the ImageRegistration1.cxx<br>in a directory and configure it with CMake.
<br><br><br><br>&nbsp;&nbsp; Regards,<br><br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Luis<br><br><br><br>==============<br>Eric John wrote:<br>&gt; Hello,<br>&gt;<br>&gt; Problem running imageregistration1...Not clear on the procedure? I tried<br>&gt; two different ways:
<br>&gt;<br>&gt; I created new folder to run in, then copied Cmakelists.txt and the .cxx<br>&gt; file for imageregistration1, run cmake, when I try to run in C++ it<br>&gt; attepts to build the whole Registration folder?<br>
&gt;<br>&gt; I also tried copying the whole Registration folder into the new folder,<br>&gt; run Cmake with source and binary to this folder, then I still get errors<br>&gt; when running program in C++?<br>&gt;<br>&gt; Thanks for any advice,
<br>&gt;<br>&gt; Eric<br>&gt;<br>&gt;<br>&gt; ------------------------------------------------------------------------<br>&gt;<br>&gt; _______________________________________________<br>&gt; Insight-users mailing list<br>
&gt; <a href="mailto:Insight-users@itk.org">Insight-users@itk.org</a><br>&gt; <a href="http://www.itk.org/mailman/listinfo/insight-users">http://www.itk.org/mailman/listinfo/insight-users</a><br><br>_______________________________________________
<br>Insight-users mailing list<br><a href="mailto:Insight-users@itk.org">Insight-users@itk.org</a><br><a href="http://www.itk.org/mailman/listinfo/insight-users">http://www.itk.org/mailman/listinfo/insight-users</a><br></blockquote>
</div><br>-- <br>=========================<br>Balaji Gandhi<br>Research Associate<br>Biomolecular Science Center<br>University of Central Florida<br>4000 Central Florida Blvd.<br>BMS building, Room 223<br>Orlando, FL&nbsp;&nbsp;32816-2364
<br>Phone: 407-823-3387<br>Fax: 407-823-0956<br>URL: <a href="http://imgem.ucf.edu">imgem.ucf.edu</a><br>=========================