[Insight-users] Build ITK and VTK in one step

Mathieu Malaterre mathieu.malaterre at gmail.com
Mon Dec 1 16:42:04 EST 2008


I would create a dummy project :

project(VTKITK)
add_subdirectory(VTK ${CMAKE_CURRENT_BINAR§Y_DIR}/VTK)
add_subdirectory(ITK ${CMAKE_CURRENT_BINAR§Y_DIR}/ITK)

where VTK point to VTK and ITK to ITK.

this is not tested.

On Mon, Dec 1, 2008 at 7:00 PM, Yves Martelli <ymartelli at cistib.upf.edu> wrote:
> But if I wanted to do it in one step (it is to simplify the life of my colleagues) would it be possible since both define this variable to two different values?
>
> -----Original Message-----
> From: Wagner Sales [mailto:wsales at gmail.com]
> Sent: Monday, December 01, 2008 6:47 PM
> To: Yves Martelli
> Cc: insight-users at itk.org
> Subject: Re: [Insight-users] Build ITK and VTK in one step
>
> Hi Yves,
>
> I not use ITK and VTK on Windows, but I compiled both some time ago in
> Windows. Since are separated projects, you'll needs to build in two
> separated steps. The projects aren't dependents on each other, then
> you can choose which build first.
>
> Regards,
>
> Wagner Sales
>
> 2008/12/1 Yves Martelli <ymartelli at cistib.upf.edu>:
>> Hi,
>>
>> I'm building a medical image visualization tool and am using ITK and VTK. I
>> was wondering if it was considered bad practice to try to build both in one
>> step? I use CMake 2.6 to generate Microsoft Visual Studio projects and am
>> having troubles with the BUILD_SHARE_LIBS variable which is defined to false
>> in ITK and to true in VTK. Can I rename this variable in VTK files to have
>> it build shared libs and not ITK or should I build ITK and VTK in two
>> separate steps?
>>
>> Thanks,
>>
>> Yves
>>
>> _______________________________________________
>> Insight-users mailing list
>> Insight-users at itk.org
>> http://www.itk.org/mailman/listinfo/insight-users
>>
>>
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users
>



-- 
Mathieu


More information about the Insight-users mailing list