Debian Codegraph @

src/plugins/platforms/xcb/gl_integrations/xcb_glx/CMakeLists.txt

raw
1 # Copyright (C) 2022 The Qt Company Ltd.
2 # SPDX-License-Identifier: BSD-3-Clause
3
4 #####################################################################
5 ## QXcbGlxIntegrationPlugin Plugin:
6 #####################################################################
7
8 qt_internal_add_plugin(QXcbGlxIntegrationPlugin
9 OUTPUT_NAME qxcb-glx-integration
10 PLUGIN_TYPE xcbglintegrations
11 SOURCES
12 qglxintegration.cpp qglxintegration.h
13 qxcbglxintegration.cpp qxcbglxintegration.h
14 qxcbglxmain.cpp
15 qxcbglxnativeinterfacehandler.cpp qxcbglxnativeinterfacehandler.h
16 qxcbglxwindow.cpp qxcbglxwindow.h
17 DEFINES
18 QT_NO_FOREACH
19 INCLUDE_DIRECTORIES
20 ..
21 ../..
22 LIBRARIES
23 Qt::Core
24 Qt::CorePrivate
25 Qt::Gui
26 Qt::GuiPrivate
27 Qt::XcbQpaPrivate
28 NO_UNITY_BUILD # X11 define clashes
29 )
30
31 ## Scopes:
32 #####################################################################
33
34 qt_internal_extend_target(QXcbGlxIntegrationPlugin CONDITION QT_FEATURE_xcb_glx
35 LIBRARIES
36 XCB::GLX
37 )
38
39 qt_internal_extend_target(QXcbGlxIntegrationPlugin
40 CONDITION QT_FEATURE_dlopen AND QT_BUILD_SHARED_LIBS
41 LIBRARIES
42 ${CMAKE_DL_LIBS}
43 )