Fixed OpenGL header inclusion guide.

This commit is contained in:
siavashserver 2018-03-17 14:31:44 +03:30 committed by GitHub
parent 34d20b0f03
commit 384402ab91
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -226,7 +226,7 @@ If OpenGL is found, the `OPENGL_FOUND` variable is true and the
`OPENGL_INCLUDE_DIR` and `OPENGL_gl_LIBRARY` cache variables can be used. `OPENGL_INCLUDE_DIR` and `OPENGL_gl_LIBRARY` cache variables can be used.
@code{.cmake} @code{.cmake}
target_include_directories(myapp ${OPENGL_INCLUDE_DIR}) target_include_directories(myapp PUBLIC ${OPENGL_INCLUDE_DIR})
target_link_libraries(myapp ${OPENGL_gl_LIBRARY}) target_link_libraries(myapp ${OPENGL_gl_LIBRARY})
@endcode @endcode
@ -279,7 +279,7 @@ If OpenGL is found, the `OPENGL_FOUND` variable is true and the
`OPENGL_INCLUDE_DIR` and `OPENGL_gl_LIBRARY` cache variables can be used. `OPENGL_INCLUDE_DIR` and `OPENGL_gl_LIBRARY` cache variables can be used.
@code{.cmake} @code{.cmake}
target_include_directories(myapp ${OPENGL_INCLUDE_DIR}) target_include_directories(myapp PUBLIC ${OPENGL_INCLUDE_DIR})
target_link_libraries(myapp ${OPENGL_gl_LIBRARY}) target_link_libraries(myapp ${OPENGL_gl_LIBRARY})
@endcode @endcode