From 23e6fbbb716cf4720743d42f2713006c7ae5e84d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Tue, 18 Mar 2014 14:38:00 +0100 Subject: [PATCH] [kwin] Add missing target link libraries Missing libs caused compile error if built standalone. --- autotests/CMakeLists.txt | 2 ++ libkwineffects/CMakeLists.txt | 4 +++- tests/CMakeLists.txt | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/autotests/CMakeLists.txt b/autotests/CMakeLists.txt index 5493219442..8be9a35a14 100644 --- a/autotests/CMakeLists.txt +++ b/autotests/CMakeLists.txt @@ -75,6 +75,7 @@ target_link_libraries( testXcbWrapper Qt5::Test Qt5::X11Extras Qt5::Widgets + KF5::WindowSystem XCB::XCB ) add_test(kwin-testXcbWrapper testXcbWrapper) @@ -92,6 +93,7 @@ target_link_libraries( testXcbWindow Qt5::Test Qt5::X11Extras Qt5::Widgets + KF5::WindowSystem XCB::XCB ) add_test(kwin-testXcbWindow testXcbWindow) diff --git a/libkwineffects/CMakeLists.txt b/libkwineffects/CMakeLists.txt index b14c862635..a16adcd290 100644 --- a/libkwineffects/CMakeLists.txt +++ b/libkwineffects/CMakeLists.txt @@ -16,6 +16,8 @@ set(kwineffects_QT_LIBS set(kwineffects_KDE_LIBS KF5::ConfigCore + KF5::Service + KF5::WindowSystem ) set(kwineffects_XCB_LIBS @@ -49,7 +51,7 @@ macro( KWIN4_ADD_GLUTILS_BACKEND name glinclude ) include_directories(${glinclude}) add_library(${name} SHARED ${kwin_GLUTILSLIB_SRCS}) generate_export_header(${name} BASE_NAME kwinglutils EXPORT_FILE_NAME kwinglutils_export.h) - target_link_libraries(${name} PUBLIC Qt5::DBus Qt5::X11Extras XCB::XCB) + target_link_libraries(${name} PUBLIC Qt5::DBus Qt5::X11Extras XCB::XCB KF5::Service KF5::WindowSystem) if(KWIN_HAVE_EGL) target_link_libraries(${name} PRIVATE EGL::EGL) endif() diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 26524ffa0e..f7f504ca0f 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -7,4 +7,4 @@ endif() # next target set(screenedgeshowtest_SRCS screenedgeshowtest.cpp) add_executable(screenedgeshowtest ${screenedgeshowtest_SRCS}) -target_link_libraries(screenedgeshowtest Qt5::Widgets Qt5::X11Extras ${XCB_XCB_LIBRARY}) +target_link_libraries(screenedgeshowtest Qt5::Widgets Qt5::X11Extras KF5::WindowSystem ${XCB_XCB_LIBRARY})