<div dir="ltr">The specific problem I&#39;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 &#39;system library&#39;</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&#39;t happen?  The TIFF&#39;s ZLib dependency doesn&#39;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&#39;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&#39;t appear to be either an elegant or a quick &amp; dirty solution to this. The problem is that until DCMTK creates proper CMake config files that clue in ITK to DCMTK&#39;s own dependencies, ITK&#39;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>