[Insight-developers] Building ITK with Module_ITKVtkGlue forces client applications to find_package(VTK)?

Matt McCormick matt.mccormick at kitware.com
Wed Apr 17 02:11:20 EDT 2013


Hi David,

Here is a patch to try:

  http://review.source.kitware.com/#/c/10917/

Thanks,
Matt



On Tue, Jul 3, 2012 at 3:03 PM, Xiaoxiao Liu <xiaoxiao.liu at kitware.com> wrote:
> David,
>
> Until we have a better  CMake solution for this,
> I think a temporary solution for building your project A is to use:
> Find (ITK REQUIRED  <Module1> <Module2 > ....)
> instead of
> Find (ITK REQRUIED)
>
> Only list the modules that  project A needs ( the module list should not
> contain ITKVTKGlue).
>
> -Xiaoxiao
>
>
>
>
>
>
>
> On Tue, Jul 3, 2012 at 2:04 PM, David Doria <daviddoria at gmail.com> wrote:
>>
>> On Tue, Jul 3, 2012 at 2:01 PM, Bill Lorensen <bill.lorensen at gmail.com>
>> wrote:
>>>
>>> Either
>>>
>>> 1) Rebuild your ITK with that module included.
>>> or
>>> 2) As described on each example page:
>>> If you download the entire ITK Wiki Examples Collection, the ItkVtkGlue
>>> directory will be included and configured. If you wish to just build a few
>>> examples, then you will need to download ItkVtkGlue and build it. When you
>>> run cmake it will ask you to specify the location of the ItkVtkGlue binary
>>> directory.
>>
>>
>> That was not the question. The question is that if ITK has been built WITH
>> ITKVtkGlue, it is not possible (linker errors) to work on a project that
>> does NOT use find_package(VTK). I can't add find_package(VTK) to my ITK-only
>> project CMakeLists.txt files because then users will be forced to comment
>> these lines when they try to build my code, which doesn't make sense at all,
>> and will surely lead to much confusion.
>>
>> David
>>
>> _______________________________________________
>> 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://kitware.com/products/protraining.php
>>
>> 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-developers
>>
>
>
>
> --
>
>
> ---------------------------------------------
> Xiaoxiao Liu, Ph.D.
> R & D Engineer
> Kitware Inc.
> Clifton Park, NY
> Phone: (518) 881-4924  or  (518) 371-3971 x124
>
>
>
> _______________________________________________
> 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://kitware.com/products/protraining.php
>
> 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-developers
>


More information about the Insight-developers mailing list