CMake 链接到外部库,无需包查找器
我有一个预编译库,必须使其对我的 Cmake 项目可见,但我不明白如何使用 Cmake 中的包查找器来查找该库。外部库本身与CMake无关。有人有什么建议吗?
干杯。
I have a precompiled library that I have to make visible to my Cmake project, and I don't understand how I would use the package finder in Cmake to find that library. The external library itself has nothing to do with CMake. Anyone have any suggestions?
Cheers.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
几天后,我发帖;最终对我有用的是:
ext/lib 有外部预编译库。我不想只链接到特定目标。
A few days later, I post; What ended up working for me was:
Where ext/lib has external precompiled libraries. I didn't want to link just to a specific target.