Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
无论如何,cmake 中是否有类似“ldd”的操作,即,给定一个目标,获取其链接库,并将它们存储在一个列表中?
如果没有,有没有办法执行命令行“ldd”(我知道使用命令)并将输出存储到 cmake 变量?
谢谢
好吧,我几乎明白了
include(GetPrerequsites)
并使用函数 GET_PREREQUISITES
看到这个:http ://www.cmake.org/pipermail/cmake/2009-June/029975.html