[Insight-users] Need tutorial tu use Itk with VS2005
John Drescher
drescherjm at gmail.com
Tue Oct 13 12:36:55 EDT 2009
On Tue, Oct 13, 2009 at 12:28 PM, Daanen Vincent <daanen at koelis.com> wrote:
> Hi John,
>
>> I am building itk for both debug and relwithdebinfo in 1 single build
>> tree. The itk libraries are being compiled into debug and
>> relwithdebinfo folders inside that.
>>
>> So ITK_DIR = X:\32Bit\VC.80\Libraries\ITK-3.16
>>
>> And inside that I have
>> X:\32Bit\VC.80\Libraries\ITK-3.16\bin\debug
>> X:\32Bit\VC.80\Libraries\ITK-3.16\bin\relwithdebinfo
>>
>> and the correct libraries get linked.
>>
>
> But what are you setting in link_directories wrt itk ?
> If I pout nothing, itk libs are not found
> V
In my CMakeLists.txt for my target application I just add the ITK libs
I need and the debug/release is handled by cmake. Here is an example:
TARGET_LINK_LIBRARIES ( LungAnalysis ${UPMC_EXTERNAL_LIBS}
${QT_LIBRARIES} ITKCommon ITKBasicFilters
ITKIO QVTK vtkCommon vtkRendering vtkVolumeRendering vtkWidgets
)
John
More information about the Insight-users
mailing list