[Insight-users] itk release and debug install both on linux system

Luis Ibanez luis.ibanez at kitware.com
Tue Mar 16 13:52:21 EDT 2010


Hi Michiel,

Here is how I do this in Linux:

cd  $HOME
mkdir bin
mkdir bin/Insight/
mkdir bin/Insight/Debug
cd bin/Insight/Debug
ccmake  $HOME/src/Insight
(set CMAKE_BUILD_TYPE to Debug)
hit "c" to configure
hit "g" to generate
make
cd ..
mkdir Release
cd Release
ccmake   $HOME/src/Insight
(set CMAKE_BUILD_TYPE to Release)
hit "c" to configure
hit "g" to generate
make


In projects that use ITK,
I set the CMake variable ITK_DIR to:

$HOME/bin/Insight/Debug

or

$HOME/bin/Insight/Release


depending on whether I want to
track the debugging information
back to ITK or not.



     Regards,


           Luis


---------------------------------------------------------
On Mon, Mar 8, 2010 at 10:12 AM, michiel mentink
<michael.mentink at st-hughs.ox.ac.uk> wrote:
>
> I'd like to have two ITK versions on my system at the same time, Release and
> Debug.
> That way I can debug a program when I'm developing and run the program in
> release when I
> want speed.
>
> Does anyone know how to do that?
>
> Now I use FindITK() in CMakeLists.txt, but I guess I manually have to point
> somewhere else?
>
> cheers,
>
> Michael
>
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://www.kitware.com/products/protraining.html
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-users
>
>


More information about the Insight-users mailing list