9a01b4312b
Otherwise the cmake summary at the end says -- The following packages have not been found: * WrapOpenGL It's OpenGL or GLESv2 that will show there as missing if needed Change-Id: I182f1299b86e1a4e24762d0bad6533c6136cbbcc Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
19 lines
424 B
CMake
19 lines
424 B
CMake
|
|
# Logic derived from mkspecs/features/unix/opengl.prf: prefer GLESv2 over GL
|
|
|
|
if(TARGET WrapOpenGL)
|
|
set(WrapOpenGL_FOUND ON)
|
|
return()
|
|
endif()
|
|
|
|
add_library(WrapOpenGL INTERFACE)
|
|
|
|
if(QT_FEATURE_opengles2)
|
|
find_package(GLESv2)
|
|
target_link_libraries(WrapOpenGL INTERFACE GLESv2::GLESv2)
|
|
else()
|
|
find_package(OpenGL)
|
|
target_link_libraries(WrapOpenGL INTERFACE OpenGL::GL)
|
|
endif()
|
|
set(WrapOpenGL_FOUND ON)
|