[CMake] When should I use add_subdirectory and when ExternalProject?
David Cole
dlrdave at aol.com
Mon Feb 4 10:39:02 EST 2013
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ņš <ansis.malins at gmail.com>
To: Kent Williams <nkwmailinglists at gmail.com>
Cc: cmake <cmake at cmake.org>
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20130204/3045a0c1/attachment.htm>
More information about the CMake
mailing list