mirror of
https://github.com/glfw/glfw.git
synced 2024-11-29 05:22:00 +00:00
parent
30f5f97370
commit
b4c99aacd4
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user