<div dir="ltr"><div>Hi Franz.<br><br>The "canonical" approach to ExternalProject is to use a "superbuild" setup. Design your top-level CMakeList so that it *only* contains ExternalProject_add() calls, treating your "original" project as just another external project. Build the superbuild once, getting all the dependencies downloaded, built, installed etc. as necessary. Then, switch to working with only your "original" project subcomponent of the superbuild.<br><br></div>Petr<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Feb 5, 2015 at 5:32 PM, Franz Engel <span dir="ltr"><<a href="mailto:franz.engel@apworks.de" target="_blank">franz.engel@apworks.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div link="#0563C1" vlink="#954F72" lang="DE">
<div>
<p class="MsoNormal"><span lang="EN-US">Hi,<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">I try to clone an repository from my bare-repository and to build my project tree. Therefore I use the following commands:<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">ExternalProject_Add ( demoA<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">       PREFIX ${MAIN_PATH}/demoA<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">       GIT_REPOSITORY ${REPOSITORY_PATH}/demoA<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">       GIT_TAG origin/master<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">       UPDATE_COMMAND ""<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">       INSTALL_COMMAND "" )<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/../demoA/src/DemoA ${CMAKE_CURRENT_SOURCE_DIR}/demoA)<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">Know I have the following problem. I load the Cmake-file with QtCreator. If I run CMake I get the error message “does not contain a CMakeLists.txt file”. That message is clear for me, because the repository only get loaded
 when I compile the code. The question is, if it is possible to clone the repo in the step of CMake. Does somebody has an idea? Or is there another method to build the project tree?<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">Br,<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">    Franz <u></u><u></u></span></p>
</div>

<br><hr>
<p>
<br>Franz Engel <br><br>AIRBUS APWORKS GmbH<br>81663 Munich - Germany<br>
T: <a href="tel:%2B49%20%280%29%2089%20607%2029103" value="+498960729103" target="_blank">+49 (0) 89 607 29103</a> <br>

M: <a href="tel:%2B49%20%280%29%20170%2044%2059%20006" value="+491704459006" target="_blank">+49 (0) 170 44 59 006</a> <br>
<a href="mailto:franz.engel@apworks.de" target="_blank">franz.engel@apworks.de</a> <br>
<br>AIRBUS APWORKS GmbH<br>Registered Office: 
Ottobrunn<br>District Court of Munich: HRB 141734<br>Managing Director: Joachim 
Zettler<br>Internet: <a href="http://www.apworks.de" target="_blank">www.apworks.de</a> </p>
<p></p>
<hr>
<br>

<br></div>

<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://public.kitware.com/mailman/listinfo/cmake" target="_blank">http://public.kitware.com/mailman/listinfo/cmake</a><br></blockquote></div><br></div>