1
0
Fork 0
mirror of https://github.com/gwm17/glfw.git synced 2024-11-23 02:38:52 -05:00

Added note on using GLFW from CMake.

This commit is contained in:
Camilla Berglund 2013-02-14 13:41:52 +01:00
parent 6f8084f061
commit b6926b1836

View File

@ -142,6 +142,18 @@ sense if you are using OpenGL.
### Link with the right libraries ### Link with the right libraries
#### Using GLFW from CMake
The `GLFW_LIBRARIES` cache variable contains all link-time dependencies of GLFW
as it is currently configured, so to link against GLFW simply do:
target_link_libraries(myapp glfw ${GLFW_LIBRARIES})
Note that this does not include GLU, as GLFW does not use it. If your
application needs GLU, you can add it to the list of dependencies with the
`OPENGL_glu_LIBRARY` cache variable.
#### Windows static library #### Windows static library
The static version of the GLFW library is named `glfw3`. When using this The static version of the GLFW library is named `glfw3`. When using this