Link EGL and GLX on Linux

This commit is contained in:
wheremyfoodat 2023-09-30 15:01:28 +03:00
parent 5426ddfd78
commit 55bb0d7170

View file

@ -407,6 +407,11 @@ if(ENABLE_QT_GUI)
if(LINUX OR FREEBSD)
find_package(X11 REQUIRED)
target_link_libraries(Alber PRIVATE ${X11_LIBRARIES})
if(ENABLE_OPENGL)
find_package(OpenGL REQUIRED COMPONENTS OpenGL EGL GLX)
target_link_libraries(Alber PRIVATE OpenGL::OpenGL OpenGL::EGL OpenGL::GLX)
endif()
endif()
else()
target_compile_definitions(Alber PUBLIC "PANDA3DS_FRONTEND_SDL=1")