Use imported target for QtGui private headers

It's nicer
This commit is contained in:
Nicolas Fella 2021-02-09 19:59:51 +01:00
parent 2b721200fb
commit a110231f68
2 changed files with 3 additions and 3 deletions

View file

@ -683,7 +683,7 @@ if (KWIN_BUILD_TABBOX)
tabbox/tabboxhandler.cpp tabbox/tabboxhandler.cpp
tabbox/x11_filter.cpp tabbox/x11_filter.cpp
) )
target_include_directories(kwin PRIVATE ${Qt5Gui_PRIVATE_INCLUDE_DIRS}) target_link_libraries(kwin Qt::GuiPrivate)
endif() endif()
generate_export_header(kwin EXPORT_FILE_NAME kwin_export.h) generate_export_header(kwin EXPORT_FILE_NAME kwin_export.h)

View file

@ -24,6 +24,7 @@ target_link_libraries(testTabBoxClientModel
Qt::Test Qt::Test
Qt::Widgets Qt::Widgets
Qt::X11Extras Qt::X11Extras
Qt::GuiPrivate
KF5::ConfigCore KF5::ConfigCore
KF5::I18n KF5::I18n
@ -32,7 +33,6 @@ target_link_libraries(testTabBoxClientModel
XCB::XCB XCB::XCB
) )
target_include_directories(testTabBoxClientModel PRIVATE ${Qt5Gui_PRIVATE_INCLUDE_DIRS})
add_test(NAME kwin-testTabBoxClientModel COMMAND testTabBoxClientModel) add_test(NAME kwin-testTabBoxClientModel COMMAND testTabBoxClientModel)
ecm_mark_as_test(testTabBoxClientModel) ecm_mark_as_test(testTabBoxClientModel)
@ -60,6 +60,7 @@ target_link_libraries(testTabBoxHandler
Qt::Test Qt::Test
Qt::Widgets Qt::Widgets
Qt::X11Extras Qt::X11Extras
Qt::GuiPrivate
KF5::ConfigCore KF5::ConfigCore
KF5::I18n KF5::I18n
@ -68,7 +69,6 @@ target_link_libraries(testTabBoxHandler
XCB::XCB XCB::XCB
) )
target_include_directories(testTabBoxHandler PRIVATE ${Qt5Gui_PRIVATE_INCLUDE_DIRS})
add_test(NAME kwin-testTabBoxHandler COMMAND testTabBoxHandler) add_test(NAME kwin-testTabBoxHandler COMMAND testTabBoxHandler)
ecm_mark_as_test(testTabBoxHandler) ecm_mark_as_test(testTabBoxHandler)