Re: [CMake] Get libraries from target

2016-11-09 Thread Jakob van Bethlehem
Hej, You should be able to query the LINK_LIBRARIES (and maybe some related properties), see https://cmake.org/cmake/help/v3.6/prop_tgt/LINK_LIBRARIES.html Sincerely, Jakob On Wed, Nov 9, 2016 at 12:05 AM, Tiago Macarios wrote: > Hi, > > Is there a way for me to get CMake libraries out of a t

[CMake] Get libraries from target

2016-11-08 Thread Tiago Macarios
Hi, Is there a way for me to get CMake libraries out of a target? For example: target_link_libraries(A B C) Can I get B and C from A? What I am trying to do: We are working on adding include-what-you-use into our build system and some of the libraries have their on mapping files. So I was wond