diff --git a/src/platformsupport/CMakeLists.txt b/src/platformsupport/CMakeLists.txt index 62a18f35ec..ff817f446a 100644 --- a/src/platformsupport/CMakeLists.txt +++ b/src/platformsupport/CMakeLists.txt @@ -33,6 +33,10 @@ if(QT_FEATURE_kms) add_subdirectory(kmsconvenience) endif() +if(QT_FEATURE_egl) + add_subdirectory(eglconvenience) +endif() + if(APPLE) add_subdirectory(clipboard) add_subdirectory(graphics) diff --git a/src/platformsupport/eglconvenience/CMakeLists.txt b/src/platformsupport/eglconvenience/CMakeLists.txt new file mode 100644 index 0000000000..2b20a9cb35 --- /dev/null +++ b/src/platformsupport/eglconvenience/CMakeLists.txt @@ -0,0 +1,37 @@ +# Generated from eglconvenience.pro. + +find_package(OpenGL) + +##################################################################### +## EglSupport Module: +##################################################################### + +add_qt_module(EglSupport + STATIC + SOURCES + qeglconvenience.cpp qeglconvenience_p.h + qeglstreamconvenience.cpp qeglstreamconvenience_p.h + qt_egl_p.h + DEFINES + QT_NO_CAST_FROM_ASCII + QT_EGL_NO_X11 + LIBRARIES + Qt::CorePrivate + Qt::GuiPrivate + OpenGL::EGL + ${CMAKE_DL_LIBS} +) + +## Scopes: +##################################################################### + +extend_target(EglSupport CONDITION QT_FEATURE_opengl + SOURCES + qeglpbuffer.cpp qeglpbuffer_p.h + qeglplatformcontext.cpp qeglplatformcontext_p.h +) + +extend_target(EglSupport CONDITION QT_FEATURE_xlib + SOURCES + qxlibeglintegration.cpp qxlibeglintegration_p.h +)