[CMake] Marking a library dependency from within a library.

Josef Karthauser joe.karthauser at geomerics.com
Thu Oct 18 05:24:21 EDT 2007


I have a library (libA), which depends upon another library (libB) for
its implementation.    I also have an executable (execC) which uses
LibA.  Is there an easy way of getting LibB added to the list of
dependencies, so what when I do

 

  Add_Executable(exeC)

  Target_Link_Libraries(exeC libA)

 

it knows (because of definitions in the CMakeLists.txt for libA) that it
should also link libB?

 

Joe

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/cmake/attachments/20071018/4c6bbe7d/attachment.html


More information about the CMake mailing list