Added a few tips to the GLFW building and compiling documentation.

This commit is contained in:
Siavash Eliasi 2015-02-18 08:38:33 +03:30
parent 4188c263e3
commit 5e2ca529af
2 changed files with 7 additions and 0 deletions

View File

@ -173,6 +173,9 @@ CMake files look for OpenGL.
target_link_libraries(myapp glfw ${OPENGL_glu_LIBRARY} ${GLFW_LIBRARIES}) target_link_libraries(myapp glfw ${OPENGL_glu_LIBRARY} ${GLFW_LIBRARIES})
@endcode @endcode
@warning Don't define `GLFW_INCLUDE_NONE` before `add_subdirectory(path/to/glfw)`
in your `CMakeLists.txt` file, otherwise you will encounter build errors.
@subsection build_link_cmake_pkgconfig With CMake on Unix and installed GLFW binaries @subsection build_link_cmake_pkgconfig With CMake on Unix and installed GLFW binaries

View File

@ -240,6 +240,10 @@ High Performance Graphics Rendering on Optimus Systems_ for more details.
context creation API. Note that EGL is not yet provided on all supported context creation API. Note that EGL is not yet provided on all supported
platforms. platforms.
@note Define these options before `add_subdirectory(path/to/glfw)` to make them
effective in your `CMakeLists.txt` file in case you are building your project
@ref build_link_cmake_source.
@section compile_manual Compiling GLFW manually @section compile_manual Compiling GLFW manually