对于 Macos,我想链接到某个框架。在 Windows 中,我想链接到某个库。
比如OpenGL Framework,这个需求怎么用cmake来表达?
最佳答案
你可以试试下面的代码:
target_link_libraries(<target name>
"-framework AVFoundation"
"-framework CoreGraphics"
"-framework CoreMotion"
"-framework Foundation"
"-framework MediaPlayer"
"-framework OpenGLES"
"-framework QuartzCore"
"-framework UIKit"
)
关于cmake - 如何使用 Cmake 使用框架?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27585896/