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

Williams, Norman K norman-k-williams at uiowa.edu
Wed May 30 15:07:16 EDT 2012


So far I've followed the model of itkExternal_FFTW.cmake.


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.

On 5/30/12 12:53 PM, "Brad King" <brad.king at kitware.com> wrote:

>On 05/30/2012 01:46 PM, Williams, Norman K wrote:
>> So I've posted a gerrit topic on the work I've done to integrate
>> DCMTKImageIO: http://review.source.kitware.com/#/c/5989/
>>
>> The question I have is that DCMTK needs to be built before compiling
>> ITK/Modules/IO/DCMTK.  Is there some way to make the module depend on
>>the
>> DCMTK external project, something like the way the inter-module
>> dependencies work?
>
>Don't bring the external project in at the top-level.  Put it
>Modules/ThirdParty/DCMTK and make it a module.  The module
>implementation can provide the ITK_USE_SYSTEM_DCMTK option.
>Look at Modules/ThirdParty/VNL or one of the other third-party
>modules to see how it works.  You shouldn't need to touch the
>top-level CMakeLists.txt at all.
>
>-Brad



________________________________
Notice: This UI Health Care e-mail (including attachments) is covered by the Electronic Communications Privacy Act, 18 U.S.C. 2510-2521, is confidential and may be legally privileged.  If you are not the intended recipient, you are hereby notified that any retention, dissemination, distribution, or copying of this communication is strictly prohibited.  Please reply to the sender that you have received the message in error, then delete it.  Thank you.
________________________________


More information about the Insight-developers mailing list