Issue
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?
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?
Thanks
Solution
Well I pretty much get it
include(GetPrerequsites)
and use function GET_PREREQUISITES
see this: http://www.cmake.org/pipermail/cmake/2009-June/029975.html
Answered By - Ralph Zhang Answer Checked By - Marilyn (WPSolving Volunteer)