From 691df1ae008ca056547f25e050662e3395f93ab9 Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Thu, 4 Mar 2021 15:06:18 +0200 Subject: [PATCH] qpa: Use imported targets for QtCore and QtGui private headers --- src/plugins/qpa/CMakeLists.txt | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/plugins/qpa/CMakeLists.txt b/src/plugins/qpa/CMakeLists.txt index 3ffa237456..952a5f5e91 100644 --- a/src/plugins/qpa/CMakeLists.txt +++ b/src/plugins/qpa/CMakeLists.txt @@ -16,12 +16,9 @@ ecm_qt_declare_logging_category(QPA_SOURCES HEADER logging.h IDENTIFIER KWIN_QPA add_library(KWinQpaPlugin OBJECT ${QPA_SOURCES}) target_compile_definitions(KWinQpaPlugin PRIVATE QT_STATICPLUGIN) -target_include_directories(KWinQpaPlugin PRIVATE - ${Qt5Core_PRIVATE_INCLUDE_DIRS} - ${Qt5Gui_PRIVATE_INCLUDE_DIRS} -) - target_link_libraries(KWinQpaPlugin PRIVATE + Qt::CorePrivate + Qt::GuiPrivate Qt::FontDatabaseSupportPrivate Qt::ThemeSupportPrivate Qt::EventDispatcherSupportPrivate