Reputation: 2195
For example, I currently have both versions 2 and 3 of the GLFW library installed on my Linux computer, named "libglfw.so.2" and "libglfw.so.3". Is it possible to tell CMake to find a specific version of GLFW (say, version 3), and it would be smart enough to look for "libglfw.so.3" or "libglfw.so.3.*" or "libglfw.so.3.*.*"? (Or something equivalent in Mac and Windows)
Upvotes: 0
Views: 808
Reputation: 1450
I found these lines but I haven't tested it
find_package(PkgConfig REQUIRED)
pkg_search_module(GLFW REQUIRED glfw3) # or glfw2
Upvotes: 1