cmake: build glxconvenience

Change-Id: Iad09a86d11565665bb06d8d5d5616fc1b35ad777
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
This commit is contained in:
Albert Astals Cid 2019-02-11 14:23:40 +01:00
parent beace29a57
commit 8ee0cb04bd
2 changed files with 28 additions and 0 deletions

View File

@ -41,6 +41,10 @@ if(QT_FEATURE_opengl)
add_subdirectory(platformcompositor) add_subdirectory(platformcompositor)
endif() endif()
if (QT_FEATURE_xlib AND QT_FEATURE_opengl AND (NOT QT_FEATURE_opengles2))
add_subdirectory(glxconvenience)
endif()
if(APPLE) if(APPLE)
add_subdirectory(clipboard) add_subdirectory(clipboard)
add_subdirectory(graphics) add_subdirectory(graphics)

View File

@ -0,0 +1,24 @@
# Generated from glxconvenience.pro.
find_package(X11)
find_package(OpenGL)
#####################################################################
## GlxSupport Module:
#####################################################################
add_qt_module(GlxSupport
STATIC
SOURCES
qglxconvenience.cpp qglxconvenience_p.h
DEFINES
QT_NO_CAST_FROM_ASCII
LIBRARIES
Qt::CorePrivate
Qt::GuiPrivate
X11::X11
OpenGL::GLX
# CONFIG = "static" "internal_module"
# MODULE = "glx_support"
# _LOADED = "qt_module"
)