<div dir="ltr">@Nick find_package(DCMTK) does an OK job. The specific issue I ran into is that TIFF depends on Zlib and that dependency isn't pulled through into DCMTK's dependencies.<div><br></div><div style>The FindDCMTK.cmake that is in the current CMake distro has issues. </div>
<div style><br></div><div style>@Ansis -- if all I cared about was getting one package built, I would do what you suggest. But I am trying to build robust CMake infrastructure here, that will be useful beyond the one project I'm starting with.</div>
<div style><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Feb 14, 2013 at 9:54 AM, Ansis Māliņš <span dir="ltr"><<a href="mailto:ansis.malins@gmail.com" target="_blank">ansis.malins@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">If I guessed right, your problem is linker errors when building your project. My solution is to just manually add whatever extra target_link_libraries are needed to shut the linker up and move on.</div>
<div class="HOEnZb"><div class="h5"><div class="gmail_extra">
<br><br><div class="gmail_quote">On Thu, Feb 14, 2013 at 5:48 PM, Nick Overdijk <span dir="ltr"><<a href="mailto:nick@astrant.net" target="_blank">nick@astrant.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word">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><div><div>On 2013-14-02, at 16:45:12 , Kent Williams wrote:</div>
<br></div></div><blockquote type="cite"><div><div><div dir="ltr">The specific problem I'm trying to solve:<div><br></div><div>Build DCMTK library, along with libraries upon which it depends, for use by ITK as a 'system library'</div>
<div><br></div>
<div>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><br></div><div>DCMTK builds against this external TIFF library just fine.</div>
<div><br></div><div>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><br></div><div>
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><br></div>
<div>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><br></div><div>Suggestions?</div><div><br></div><div>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" target="_blank">https://github.com/InsightSoftwareConsortium/DCMTK/tree/AddProperConfig</a></div>
</div></div></div><span><font color="#888888">
--<br><br>Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br><br>Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">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" target="_blank">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" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a></font></span></blockquote>
</div><br></div></div><br>--<br>
<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">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" target="_blank">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" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br></blockquote></div><br></div>
</div></div></blockquote></div><br></div>