<font color='black' size='2' face='arial'>The <font size="2">OpenChemistry project ( https://github.com/OpenChemistry/openchemistry )</font><font color="black" face="arial" size="2"> is a very goo<font size="2">d example of a SuperBuild <font size="2">project that builds all of its external depen<font size="2">dencies <font size="2">via ExternalProject, and then all of its git submodu<font size="2">les ("internal dependencies" perhaps ?<font size="2">) also vi<font size="2">a ExternalProject.<br>
<br>
<font size="2">They use CMAKE_PREFIX_PATH both a<font size="2">s a place to install <font size="2">al<font size="2">l of the built components, and a<font size="2">s a <font size="2">place for find_package to find stuff that w<font size="2">as buil<font size="2">t by a p<font size="2">revious ExternalProject_Add call.<br>
<br>
<font size="2"><font size="2">S<font size="2">tudy</font> how they do stuff in their CMakeLists files and then get back to us<font size="2"> here with more questions.<br>
<br>
<br>
<font size="2">D<br>
<br>
</font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font>
<div> <br>

</div>



<div> <br>

</div>



<div> <br>

</div>



<div style="font-family:arial,helvetica;font-size:10pt;color:black">-----Original Message-----<br>

From: Ansis Māliņš &lt;ansis.malins@gmail.com&gt;<br>

To: Kent Williams &lt;nkwmailinglists@gmail.com&gt;<br>

Cc: cmake &lt;cmake@cmake.org&gt;<br>

Sent: Mon, Feb 4, 2013 10:24 am<br>

Subject: Re: [CMake] When should I use add_subdirectory and when ExternalProject?<br>

<br>









<div id="AOLMsgPart_2_b94edc8f-a32a-464d-b85b-2d02502dde17">



<div dir="ltr">&gt;<span style="font-family:arial,sans-serif;font-size:13px">SuperBuild pattern</span>

<div style=""><span style="font-family:arial,sans-serif;font-size:13px">Tell me all about it!</span></div>

</div>



</div>

 <!-- end of AOLMsgPart_2_b94edc8f-a32a-464d-b85b-2d02502dde17 -->



<div id="AOLMsgPart_3_b94edc8f-a32a-464d-b85b-2d02502dde17" style="margin: 0px;font-family: Tahoma, Verdana, Arial, Sans-Serif;font-size: 12px;color: #000;background-color: #fff;">

<pre style="font-size: 9pt;"><tt>--

Powered by <a __removedlink__360938736__href="http://www.kitware.com" target="_blank">www.kitware.com</a>

Visit other Kitware open-source projects at <a __removedlink__360938736__href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a>

Please keep messages on-topic and check the CMake FAQ at: <a __removedlink__360938736__href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a>

Follow this link to subscribe/unsubscribe:
<a __removedlink__360938736__href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a>
</tt></pre>
</div>

 <!-- end of AOLMsgPart_3_b94edc8f-a32a-464d-b85b-2d02502dde17 -->



</div>

</font></font>