kwin/plugins/qpa/CMakeLists.txt
Frederik Gladhorn 503661579f Remove unused FindQt5PlatformSupport.cmake
Summary: This file was required for Qt 5.8. We require 5.11 as minimum version.

Test Plan: Grepped for the file being used in other cmake code, rebuilt KWin without it.

Reviewers: #kwin, zzag

Reviewed By: #kwin, zzag

Subscribers: kwin, zzag

Tags: #kwin

Differential Revision: https://phabricator.kde.org/D16654
2018-11-04 17:01:49 +01:00

45 lines
1.1 KiB
CMake

include_directories(${Qt5Core_PRIVATE_INCLUDE_DIRS})
include_directories(${Qt5Gui_PRIVATE_INCLUDE_DIRS})
set(QPA_SOURCES
abstractplatformcontext.cpp
backingstore.cpp
integration.cpp
main.cpp
nativeinterface.cpp
platformcontextwayland.cpp
platformcursor.cpp
screen.cpp
sharingplatformcontext.cpp
window.cpp
)
include(ECMQtDeclareLoggingCategory)
ecm_qt_declare_logging_category(QPA_SOURCES HEADER logging.h IDENTIFIER KWIN_QPA CATEGORY_NAME kwin_qpa_plugin DEFAULT_SEVERITY Critical)
add_library(KWinQpaPlugin MODULE ${QPA_SOURCES})
set(QT5PLATFORMSUPPORT_LIBS
Qt5FontDatabaseSupport::Qt5FontDatabaseSupport
Qt5ThemeSupport::Qt5ThemeSupport
Qt5EventDispatcherSupport::Qt5EventDispatcherSupport
)
target_link_libraries(KWinQpaPlugin
kwin
KF5::WaylandClient
${QT5PLATFORMSUPPORT_LIBS}
${FONTCONFIG_LIBRARIES}
${FREETYPE_LIBRARIES}
)
if(HAVE_WAYLAND_EGL)
target_link_libraries(KWinQpaPlugin Wayland::Egl)
endif()
install(
TARGETS
KWinQpaPlugin
DESTINATION
${PLUGIN_INSTALL_DIR}/platforms/
)