<div dir="ltr"><a href="https://github.com/OpenChemistry/openchemistry/tree/master/cmake">https://github.com/OpenChemistry/openchemistry/tree/master/cmake</a><br><div><br></div><div>David Cole pointed me to the project he is developing. There are a lot of ExternalProject_Add examples, and good practices for &quot;super-build&quot; projects in general. It was/is very helpful for me!</div>

</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Oct 28, 2013 at 2:05 AM, Yngve Inntjore Levinsen <span dir="ltr">&lt;<a href="mailto:yngve.levinsen@gmail.com" target="_blank">yngve.levinsen@gmail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Den 17. mars 2012 22:03, skrev Bill Lorensen:<br>
<div class="im">&gt; Folks,<br>
&gt;<br>
&gt; I&#39;ve recently created a number of super builds using CMake&#39;s External<br>
&gt; Project mechanism. Each external project requires some sort of<br>
&gt; download, configuration, build and possibly install. The CMake defines<br>
&gt; needed to correctly access the results of the external project vary<br>
&gt; significantly. The trickiest part is find the proper download,<br>
&gt; configuration and CMake defines.<br>
&gt;<br>
&gt; For example, for the Point Cloud Library (<a href="http://pointclouds.org/" target="_blank">http://pointclouds.org/</a>) I<br>
&gt; created these external projects:<br>
&gt; VTK - git, cmake, make; VTK_DIR<br>
&gt; FLANN - zip, cmake, make install; FLANN_LIBRARY, FLANN_INCUDE_DIR<br>
&gt; Eigen - .tar.bz2,; EIGEN_INCLUDE_DIR<br>
&gt; Qhull - git, cmake, make;QHULL_LIBRARY,QHULL_INCLUDE_DIR<br>
&gt; Boost - .tar.gz, bootstrap.sh, b2; BOOST_ROOT<br>
&gt; GTest - .zip, cmake, make; GTEST_ROOT,GTEST_INCLUDE_DIR<br>
&gt;<br>
&gt; Slicer4 has many more.<br>
&gt;<br>
&gt; Should we start collecting sample ExternalProject_Add files for<br>
&gt; external projects?<br>
&gt;<br>
</div>&gt; Bill<br>
<br>
Hi,<br>
<br>
For what it&#39;s worth, I would also mention a larger superbuild project at<br>
CERN called LCGsoft:<br>
<a href="http://svnweb.cern.ch/world/wsvn/lcgsoft/trunk/lcgcmake/" target="_blank">http://svnweb.cern.ch/world/wsvn/lcgsoft/trunk/lcgcmake/</a><br>
<br>
They built macros on top of ExternalProject_Add, see<br>
cmake/modules/lcgsoft-macros.cmake. Maybe some parts of this design are<br>
interesting to you. I have never used this myself, so I don&#39;t know the<br>
details.<br>
<br>
Cheers,<br>
Yngve<br>
<div class="HOEnZb"><div class="h5">--<br>
<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</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>
Kitware offers various services to support the CMake community. For more information on each offering, please visit:<br>
<br>
CMake Support: <a href="http://cmake.org/cmake/help/support.html" target="_blank">http://cmake.org/cmake/help/support.html</a><br>
CMake Consulting: <a href="http://cmake.org/cmake/help/consulting.html" target="_blank">http://cmake.org/cmake/help/consulting.html</a><br>
CMake Training Courses: <a href="http://cmake.org/cmake/help/training.html" target="_blank">http://cmake.org/cmake/help/training.html</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>
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>
</div></div></blockquote></div><br></div>