[Insight-users] Problem running ImageRegistratation1...
Luis Ibanez
luis.ibanez at kitware.com
Wed Apr 19 10:58:13 EDT 2006
Hi Balaji,
This shouldn't be necessary.
CMake will ask you where your ITK binary directory is located.
Of course if you run CMakeSetup.exe (in windows) or ccmake (in Unix).
You additional line is fine if you only want to run CMake directly.
The disadvantage of adding such line is that you will have trouble
later on when sharing your code with someone else, or when moving
the code to another machine.
Regards,
Luis
-----------------------
Balaji Gandhi wrote:
> Hi Luis/Eric/All,
>
> Thanks for your inputs. From my experience:-
>
> You need to add:-
> # This is to find ITK
> SET(ITK_DIR "{MY_PATH}/Insight-binary")
>
> after:-
> PROJECT(Registration)
>
> to compile any code "outside the Insight directory". Is that right?
>
> Thanks,
> Balaji
>
> On 4/18/06, *Luis Ibanez* < luis.ibanez at kitware.com
> <mailto:luis.ibanez at kitware.com>> wrote:
>
>
> Hi Eric,
>
> Here is a CMakeLists.txt file that you can use for
> configuring and building this Registration example:
>
>
> PROJECT(Registration)
>
>
> FIND_PACKAGE(ITK REQUIRED)
> IF(ITK_FOUND)
> INCLUDE(${ITK_USE_FILE})
> ENDIF(ITK_FOUND)
>
> ADD_EXECUTABLE(ImageRegistration1 ImageRegistration1.cxx )
>
> TARGET_LINK_LIBRARIES(ImageRegistration1
> ITKAlgorithms ITKBasicFilters ITKIO ITKCommon)
>
>
>
> Copy this CMakeLists.txt file and the ImageRegistration1.cxx
> in a directory and configure it with CMake.
>
>
>
> Regards,
>
>
> Luis
>
>
>
> ==============
> Eric John wrote:
> > Hello,
> >
> > Problem running imageregistration1...Not clear on the procedure?
> I tried
> > two different ways:
> >
> > I created new folder to run in, then copied Cmakelists.txt and
> the .cxx
> > file for imageregistration1, run cmake, when I try to run in C++ it
> > attepts to build the whole Registration folder?
> >
> > I also tried copying the whole Registration folder into the new
> folder,
> > run Cmake with source and binary to this folder, then I still get
> errors
> > when running program in C++?
> >
> > Thanks for any advice,
> >
> > Eric
> >
> >
> >
> ------------------------------------------------------------------------
> >
> > _______________________________________________
> > Insight-users mailing list
> > Insight-users at itk.org <mailto:Insight-users at itk.org>
> > http://www.itk.org/mailman/listinfo/insight-users
>
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org <mailto:Insight-users at itk.org>
> http://www.itk.org/mailman/listinfo/insight-users
>
>
> --
> =========================
> Balaji Gandhi
> Research Associate
> Biomolecular Science Center
> University of Central Florida
> 4000 Central Florida Blvd.
> BMS building, Room 223
> Orlando, FL 32816-2364
> Phone: 407-823-3387
> Fax: 407-823-0956
> URL: imgem.ucf.edu <http://imgem.ucf.edu>
> =========================
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users
More information about the Insight-users
mailing list