Hi Franz. 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.
Petr On Thu, Feb 5, 2015 at 5:32 PM, Franz Engel <franz.en...@apworks.de> wrote: > Hi, > > > > I try to clone an repository from my bare-repository and to build my > project tree. Therefore I use the following commands: > > > > ExternalProject_Add ( demoA > > PREFIX ${MAIN_PATH}/demoA > > GIT_REPOSITORY ${REPOSITORY_PATH}/demoA > > GIT_TAG origin/master > > UPDATE_COMMAND "" > > INSTALL_COMMAND "" ) > > > > add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/../demoA/src/DemoA > ${CMAKE_CURRENT_SOURCE_DIR}/demoA) > > > > 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? > > > > Br, > > Franz > > ------------------------------ > > > Franz Engel > > AIRBUS APWORKS GmbH > 81663 Munich - Germany > T: +49 (0) 89 607 29103 > M: +49 (0) 170 44 59 006 > franz.en...@apworks.de > > AIRBUS APWORKS GmbH > Registered Office: Ottobrunn > District Court of Munich: HRB 141734 > Managing Director: Joachim Zettler > Internet: www.apworks.de > > ------------------------------ > > > > -- > > Powered by www.kitware.com > > Please keep messages on-topic and check the CMake FAQ at: > http://www.cmake.org/Wiki/CMake_FAQ > > Kitware offers various services to support the CMake community. For more > information on each offering, please visit: > > CMake Support: http://cmake.org/cmake/help/support.html > CMake Consulting: http://cmake.org/cmake/help/consulting.html > CMake Training Courses: http://cmake.org/cmake/help/training.html > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/cmake >
-- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/cmake