<div dir="ltr">The specific problem I'm trying to solve:<div><br></div><div style>Build DCMTK library, along with libraries upon which it depends, for use by ITK as a 'system library'</div><div style><br></div>
<div style>The problem: Setting up the External Projects is simple enough; the problem is that the revision/configuration of TIFF -- 3.9.4 -- by default requires ZLib.</div><div style><br></div><div style>DCMTK builds against this external TIFF library just fine.</div>
<div style><br></div><div style>What doesn't happen? The TIFF's ZLib dependency doesn't get propogated to builds that depend on DCMTK, so Zlib is not on the DCMTK library list.</div><div style><br></div><div style>
This wouldn't be a problem if TIFF and DCMTK were proper CMake builds. If they were when they export their libraries, find_package would carry along the dependencies of the imported libraries.</div><div style><br></div>
<div style>There doesn't appear to be either an elegant or a quick & dirty solution to this. The problem is that until DCMTK creates proper CMake config files that clue in ITK to DCMTK's own dependencies, ITK's own CMake config files will not reflect those dependencies.</div>
<div style><br></div><div style>Suggestions?</div><div style><br></div><div style>Oh, and by the way I am trying to get DCMTK to generate proper configuration files for find_package(NO_MODULE): <a href="https://github.com/InsightSoftwareConsortium/DCMTK/tree/AddProperConfig">https://github.com/InsightSoftwareConsortium/DCMTK/tree/AddProperConfig</a></div>
</div>