qpa: Use imported targets for QtCore and QtGui private headers

This commit is contained in:
Vlad Zahorodnii 2021-03-04 15:06:18 +02:00
parent 17381dcf05
commit 691df1ae00

View file

@ -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