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 <[email protected]> wrote: > On Tue, Jul 3, 2012 at 2:01 PM, Bill Lorensen <[email protected]>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<http://gitorious.org/itkwikiexamples/itkwikiexamples/blobs/raw/master/ItkVtkGlue.tar.gz>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 <http://www.kitware.com/>. 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
