[Insight-developers] Is it Kosher to change ITK/Wrapping/WrapITK?

Williams, Norman K norman-k-williams at uiowa.edu
Fri Jan 14 13:26:59 EST 2011


As I understand it, WrapITK in ITK4 is more or less tracking the
independent WrapITK project headed by Gaetan Lehmann.

In order to automate downloading and building CableSwig using CMake's
ExternalProject module, a slight change needs to be made to allow for
building CableSwig as an external project.  Namely, something along the
lines of this:

if(NOT ITK_CABLESWIG_EXTERNALPROJECT)
  find_package(CableSwig REQUIRED)
endif(NOT ITK_CABLESWIG_EXTERNALPROJECT)


The other part of the setup is in ITK/Wrapping/itkWrapSetup.cmake -- based
on a new option ITK_CABLESWIG_EXTERNALPROJECT It either builds CableSwig
using ExternalProject, or uses the old method of either building source
downloaded to ITK/Utilities/CableSwig or finding it with find_package.

The problem is that at CMake configure time, the internally built
CableSwig has yet to be built.  Those programs aren't needed at configure
time, though, just their locations.




More information about the Insight-developers mailing list