title: Any equivalence of 'ldd' command in cmake?
body: <p>Is there anyway in cmake to do something like 'ldd', i.e., given a target, get its linked libraries, and store them in a list?</p>
  
  <p>If there is not, is there a way to do a command line 'ldd' (i know using COMMAND) and store the output to a cmake variable?</p>
  
  <p>Thanks</p>