On 14.01.11 14:56:22, James C. Sutherland wrote:
> The recent thread on ctest and git submodules made me start considering
> using submodules in a few projects.  My question is how to integrate the two
> build systems (both cmake based).
> 
> Right now I do a find_package() to resolve the dependent library.  If I move
> to a submodule, and both the superproject and subproject are cmake-based, is
> there any recipe for how to make them play nice?

add_subdirectory() and build the submodule as part of the superproject.
Make sure that the submodule also builds standalone and is not
influenced by stuff set in the super-project (move the add_subdirectory
to the top of the cmakelists.txt). Thats all I can think of right now.

Andreas

-- 
Don't tell any big lies today.  Small ones can be just as effective.
_______________________________________________
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