2016-04-08 07:51:06 +00:00
|
|
|
set(X11PLATFORM_SOURCES
|
2016-04-15 11:47:56 +00:00
|
|
|
edge.cpp
|
2016-04-12 12:48:54 +00:00
|
|
|
logging.cpp
|
2016-08-16 13:31:14 +00:00
|
|
|
x11cursor.cpp
|
2016-04-08 07:51:06 +00:00
|
|
|
x11_platform.cpp
|
2016-04-08 08:32:37 +00:00
|
|
|
screens_xrandr.cpp
|
2016-11-15 09:22:56 +00:00
|
|
|
windowselector.cpp
|
2016-04-08 07:51:06 +00:00
|
|
|
)
|
|
|
|
|
2016-08-16 13:31:14 +00:00
|
|
|
if(X11_Xinput_FOUND)
|
|
|
|
set(X11PLATFORM_SOURCES ${X11PLATFORM_SOURCES} xinputintegration.cpp)
|
|
|
|
endif()
|
|
|
|
|
2016-04-12 13:03:07 +00:00
|
|
|
if(HAVE_EPOXY_GLX)
|
|
|
|
set(X11PLATFORM_SOURCES ${X11PLATFORM_SOURCES} glxbackend.cpp)
|
|
|
|
endif()
|
|
|
|
|
2016-04-08 07:51:06 +00:00
|
|
|
add_library(KWinX11Platform MODULE ${X11PLATFORM_SOURCES})
|
2016-08-16 13:31:14 +00:00
|
|
|
target_link_libraries(KWinX11Platform eglx11common kwin Qt5::X11Extras XCB::CURSOR)
|
|
|
|
if(X11_Xinput_FOUND)
|
|
|
|
target_link_libraries(KWinX11Platform ${X11_Xinput_LIB})
|
|
|
|
endif()
|
2016-04-08 07:51:06 +00:00
|
|
|
|
2016-11-22 07:34:59 +00:00
|
|
|
if(HAVE_DL_LIBRARY)
|
|
|
|
target_link_libraries(KWinX11Platform ${DL_LIBRARY})
|
|
|
|
endif()
|
|
|
|
|
2016-04-08 07:51:06 +00:00
|
|
|
install(
|
|
|
|
TARGETS
|
|
|
|
KWinX11Platform
|
|
|
|
DESTINATION
|
|
|
|
${PLUGIN_INSTALL_DIR}/org.kde.kwin.platforms/
|
|
|
|
)
|