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 "{MY_PATH}/Insight-binary")<br><br>after:-<br>PROJECT(Registration)<br>
<br>to compile any code "outside the Insight directory". 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> <<a href="mailto:luis.ibanez@kitware.com">
luis.ibanez@kitware.com</a>> 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> INCLUDE(${ITK_USE_FILE})<br>ENDIF(ITK_FOUND)<br><br>ADD_EXECUTABLE(ImageRegistration1
ImageRegistration1.cxx )<br><br>TARGET_LINK_LIBRARIES(ImageRegistration1<br> 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> Regards,<br><br><br> Luis<br><br><br><br>==============<br>Eric John wrote:<br>> Hello,<br>><br>> Problem running imageregistration1...Not clear on the procedure? I tried<br>> two different ways:
<br>><br>> I created new folder to run in, then copied Cmakelists.txt and the .cxx<br>> file for imageregistration1, run cmake, when I try to run in C++ it<br>> attepts to build the whole Registration folder?<br>
><br>> I also tried copying the whole Registration folder into the new folder,<br>> run Cmake with source and binary to this folder, then I still get errors<br>> when running program in C++?<br>><br>> Thanks for any advice,
<br>><br>> Eric<br>><br>><br>> ------------------------------------------------------------------------<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><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 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>=========================