From 8ee0cb04bd2c455151dd34b02d1d8a830021efd1 Mon Sep 17 00:00:00 2001 From: Albert Astals Cid Date: Mon, 11 Feb 2019 14:23:40 +0100 Subject: [PATCH] cmake: build glxconvenience Change-Id: Iad09a86d11565665bb06d8d5d5616fc1b35ad777 Reviewed-by: Simon Hausmann --- src/platformsupport/CMakeLists.txt | 4 ++++ .../glxconvenience/CMakeLists.txt | 24 +++++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 src/platformsupport/glxconvenience/CMakeLists.txt diff --git a/src/platformsupport/CMakeLists.txt b/src/platformsupport/CMakeLists.txt index b4b5c8a8dc..826cda3903 100644 --- a/src/platformsupport/CMakeLists.txt +++ b/src/platformsupport/CMakeLists.txt @@ -41,6 +41,10 @@ if(QT_FEATURE_opengl) add_subdirectory(platformcompositor) endif() +if (QT_FEATURE_xlib AND QT_FEATURE_opengl AND (NOT QT_FEATURE_opengles2)) + add_subdirectory(glxconvenience) +endif() + if(APPLE) add_subdirectory(clipboard) add_subdirectory(graphics) diff --git a/src/platformsupport/glxconvenience/CMakeLists.txt b/src/platformsupport/glxconvenience/CMakeLists.txt new file mode 100644 index 0000000000..022b606833 --- /dev/null +++ b/src/platformsupport/glxconvenience/CMakeLists.txt @@ -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" +)