Cmakelists.txt中配置glfw

qt中需要用cmake编译工程,且需要用到OpenGL库glfw,如何给Cmakelist.txt配置glfw的动态链接库?

在Cmakelists.txt添:

find_package(glfw3 REQUIRED)

并在target_link_libraries中添加glfw

原文地址:https://www.cnblogs.com/fuhang/p/10014780.html