<div dir="ltr">Thanks very much, Magnus! I will try it out.<div>(your tag line made me laugh)</div><div><br></div><div>Cheers,</div><div>Aaron</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Feb 20, 2014 at 1:21 AM, Magnus Therning <span dir="ltr"><<a href="mailto:magnus@therning.org" target="_blank">magnus@therning.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On Wed, Feb 19, 2014 at 06:24:44PM -0500, Aaron Boxer wrote:<br>
> I have cmake two projects, with project 2 added as a git submodule in<br>
> project 1.<br>
><br>
> I would like to build project 2 from project 1.<br>
><br>
> How can I do this? I tried add_subdirectory, but this is just for adding<br>
> source directories. I want to use the project 2 cmake files to build it.<br>
<br>
</div></div>Have a look at ExternalProject<br>
(<a href="http://www.cmake.org/cmake/help/v2.8.12/cmake.html#module:ExternalProject" target="_blank">http://www.cmake.org/cmake/help/v2.8.12/cmake.html#module:ExternalProject</a>)<br>
it's very likely what you are looking for.<br>
<span class="HOEnZb"><font color="#888888"><br>
/M<br>
<br>
<br>
--<br>
Magnus Therning OpenPGP: 0xAB4DFBA4<br>
email: <a href="mailto:magnus@therning.org">magnus@therning.org</a> jabber: <a href="mailto:magnus@therning.org">magnus@therning.org</a><br>
twitter: magthe <a href="http://therning.org/magnus" target="_blank">http://therning.org/magnus</a><br>
<br>
I invented the term Object-Oriented, and I can tell you I did not have<br>
C++ in mind.<br>
-- Alan Kay<br>
</font></span><br>--<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></blockquote></div><br></div>