<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">I don't really get your specific problem... CMake can find and install ITK and DCMTK just fine here? (I had to manipulate the linker-order of DCMTK a bit but that's almost to be expected, sadly).<div><br></div><div>You're saying that when you find_package(DCMTK) it's libraries doesn't include some library it needs?</div><div><br></div><div><div><div>On 2013-14-02, at 16:45:12 , Kent Williams wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><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? &nbsp;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 &amp; 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):&nbsp;<a href="https://github.com/InsightSoftwareConsortium/DCMTK/tree/AddProperConfig">https://github.com/InsightSoftwareConsortium/DCMTK/tree/AddProperConfig</a></div>
</div>
--<br><br>Powered by <a href="http://www.kitware.com">www.kitware.com</a><br><br>Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a><br><br>Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ">http://www.cmake.org/Wiki/CMake_FAQ</a><br><br>Follow this link to subscribe/unsubscribe:<br><a href="http://www.cmake.org/mailman/listinfo/cmake">http://www.cmake.org/mailman/listinfo/cmake</a></blockquote></div><br></div></body></html>