[Insight-developers] ITK/CMake q: Can I make a module depend on an ExternalProject target?

Brad King brad.king at kitware.com
Wed May 30 15:27:16 EDT 2012


On 05/30/2012 03:07 PM, Williams, Norman K wrote:
> So far I've followed the model of itkExternal_FFTW.cmake.

I was never happy with the way that was done.  Everything should
be encapsulated inside modules.

> The problem with Modules/ThirdParty is that I'd have to be checking in the
> DCMTK source after massaging it to fit into that paradigm, and then I'd
> have the problem of keeping the ITK version in sync with the OFFIS
> official version.

The module's CMakeLists.txt file can still use an external project to
do the build without bringing in the whole source tree.

-Brad


More information about the Insight-developers mailing list