Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add OpenGL libraries to test target link libraries (#86). #87

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

yanlinlin82
Copy link

Ensures that OpenGL libraries are linked when building test targets, which may be necessary for proper rendering and testing of graphics-related functionality.

…sity#86).

Ensures that OpenGL libraries are linked when building test targets, which may be necessary for proper rendering and testing of graphics-related functionality.
@yanlinlin82 yanlinlin82 changed the title Add OpenGL libraries to test target link libraries (#86). Add OpenGL libraries to test target link libraries Jan 27, 2025
@yanlinlin82 yanlinlin82 changed the title Add OpenGL libraries to test target link libraries Add OpenGL libraries to test target link libraries (#86). Jan 27, 2025
@coalsont
Copy link
Member

It is probably better to match wb_command:

SET (MESA_OR_OPENGL_LIBRARIES "")
IF (OSMESA_FOUND)
SET(MESA_OR_OPENGL_LIBRARIES
${OSMESA_OFFSCREEN_LIBRARY}
${OSMESA_GL_LIBRARY}
${OSMESA_GLU_LIBRARY})
ELSE()
IF (OPENGL_FOUND)
SET(MESA_OR_OPENGL_LIBRARIES ${OPENGL_LIBRARIES})
ELSE()
MESSAGE(SEND_ERROR "Must have either OpenGL or Mesa3D for command line")
ENDIF()
ENDIF()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants