Commit a110231f authored by Nicolas Fella's avatar Nicolas Fella
Browse files

Use imported target for QtGui private headers

It's nicer
parent 2b721200
......@@ -683,7 +683,7 @@ if (KWIN_BUILD_TABBOX)
tabbox/tabboxhandler.cpp
tabbox/x11_filter.cpp
)
target_include_directories(kwin PRIVATE ${Qt5Gui_PRIVATE_INCLUDE_DIRS})
target_link_libraries(kwin Qt::GuiPrivate)
endif()
generate_export_header(kwin EXPORT_FILE_NAME kwin_export.h)
......
......@@ -24,6 +24,7 @@ target_link_libraries(testTabBoxClientModel
Qt::Test
Qt::Widgets
Qt::X11Extras
Qt::GuiPrivate
KF5::ConfigCore
KF5::I18n
......@@ -32,7 +33,6 @@ target_link_libraries(testTabBoxClientModel
XCB::XCB
)
target_include_directories(testTabBoxClientModel PRIVATE ${Qt5Gui_PRIVATE_INCLUDE_DIRS})
add_test(NAME kwin-testTabBoxClientModel COMMAND testTabBoxClientModel)
ecm_mark_as_test(testTabBoxClientModel)
......@@ -60,6 +60,7 @@ target_link_libraries(testTabBoxHandler
Qt::Test
Qt::Widgets
Qt::X11Extras
Qt::GuiPrivate
KF5::ConfigCore
KF5::I18n
......@@ -68,7 +69,6 @@ target_link_libraries(testTabBoxHandler
XCB::XCB
)
target_include_directories(testTabBoxHandler PRIVATE ${Qt5Gui_PRIVATE_INCLUDE_DIRS})
add_test(NAME kwin-testTabBoxHandler COMMAND testTabBoxHandler)
ecm_mark_as_test(testTabBoxHandler)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment