[CMake] How to add dependency relations between libs and executable
Chuck Atkins
chuck.atkins at kitware.com
Wed Apr 20 09:34:16 EDT 2016
> So for this parallel project structure, an upper level cmakelist used to
> organize and setup relationship with lib A, B, C right?
>
Correct. The top level CMakeLists.txt lets A B and C all build under a
single configuration.
One more question is, if use the upper level cmake list, lib_B , lib_C can
> be invoked directly without import in proj_a?
>
If you configure the top level project, you can always invoke make on only
the B or C targets via "make A" or "make B". However, by having the
"project' command in the CMakeLists.txt for proj_b and proj_c, then those
can also be treated as fully independent projects of their own, meaning
they can either be configured by themselves or as a part of the top-level.
- Chuck
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20160420/d97d67e8/attachment.html>
More information about the CMake
mailing list