mirror of
https://github.com/glfw/glfw.git
synced 2024-11-22 13:04:35 +00:00
Added note on using GLFW from CMake.
This commit is contained in:
parent
6f8084f061
commit
b6926b1836
12
README.md
12
README.md
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user