From b6926b18369c1dbf1419899f49ba06ab1a0053ea Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Thu, 14 Feb 2013 13:41:52 +0100 Subject: [PATCH] Added note on using GLFW from CMake. --- README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/README.md b/README.md index ae9cc50c..c88a8daa 100644 --- a/README.md +++ b/README.md @@ -142,6 +142,18 @@ sense if you are using OpenGL. ### 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 The static version of the GLFW library is named `glfw3`. When using this