<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:10pt;color:#333399;font-family:Tahoma,Geneva,sans-serif;" dir="ltr">
<p style="margin-top:0;margin-bottom:0">Hi,</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">I'm using cmake to build a library (damaris). Once installed, I would like users to be able to find it and its dependencies using find_package(damaris). If I understand correctly, the way to do that is to have cmake create
and install a <span>"damaris-config.cmake" file.</span></p>
<p style="margin-top:0;margin-bottom:0"><span><br>
</span></p>
<p style="margin-top:0;margin-bottom:0"><span>Is there a tutorial somewhere on how to do that?</span></p>
<p style="margin-top:0;margin-bottom:0"><span><br>
</span></p>
<p style="margin-top:0;margin-bottom:0"><span>Here is some more information:</span></p>
<p style="margin-top:0;margin-bottom:0"><span>the library depends on <br>
</span></p>
<p style="margin-top:0;margin-bottom:0"><span>- Boost (using the default FindBoost.cmake installed with cmake)<br>
</span></p>
<p style="margin-top:0;margin-bottom:0"><span>- XercesC (using a custom FindXercesC.cmake located in my source tree)<br>
</span></p>
<p style="margin-top:0;margin-bottom:0"><span>- XSD (using a custom FindXSD.cmake as well)</span></p>
<p style="margin-top:0;margin-bottom:0"><span>Additionally, it may have been built with the following optional dependencies:</span></p>
<p style="margin-top:0;margin-bottom:0"><span>- CppUnit (using a custom FindCppUnit.cmake)</span></p>
<p style="margin-top:0;margin-bottom:0"><span>- HDF5 (using the default FindHDF5.cmake shipped with cmake)</span></p>
<p style="margin-top:0;margin-bottom:0"><span>- VisIt (using a custom FindVisIt.cmake)</span></p>
<p style="margin-top:0;margin-bottom:0"><span>- ParaView (relying on the ParaViewConfig.cmake produced when installing ParaView).</span></p>
<p style="margin-top:0;margin-bottom:0"><span><br>
</span></p>
<p style="margin-top:0;margin-bottom:0"><span>Thanks,</span></p>
<p style="margin-top:0;margin-bottom:0"><span><br>
</span></p>
<p style="margin-top:0;margin-bottom:0"><span>Matthieu</span><br>
</p>
</div>
</body>
</html>