The OpenChemistry project ( https://github.com/OpenChemistry/openchemistry ) is 
a very good example of a SuperBuild project that builds all of its external 
dependencies via ExternalProject, and then all of its git submodules ("internal 
dependencies" perhaps ?) also via ExternalProject.

They use CMAKE_PREFIX_PATH both as a place to install all of the built 
components, and as a place for find_package to find stuff that was built by a 
previous ExternalProject_Add call.

Study how they do stuff in their CMakeLists files and then get back to us here 
with more questions.


D


 

 

 

-----Original Message-----
From: Ansis Māliņš <[email protected]>
To: Kent Williams <[email protected]>
Cc: cmake <[email protected]>
Sent: Mon, Feb 4, 2013 10:24 am
Subject: Re: [CMake] When should I use add_subdirectory and when 
ExternalProject?


>SuperBuild pattern
Tell me all about it!

 
--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

 
--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to