From 72a01436cc7aef127239b8a2bc61787a15a4ac03 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Tue, 23 Jul 2013 12:02:44 +0200 Subject: [PATCH] Make unit tests compile --- tests/CMakeLists.txt | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 91a0b58e90..34d05c6a4f 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -9,7 +9,7 @@ set( testUpdateKWin49_SRCS test_update_kwin_49.cpp ../data/update_kwin_49.cpp .. set( testScreenPaintData_SRCS test_screen_paint_data.cpp ) kde4_add_unit_test( testScreenPaintData TESTNAME kwin-TestScreenPaintData ${testScreenPaintData_SRCS} ) -target_link_libraries( testScreenPaintData kwineffects ${QT_QTCORE_LIBRARY} ${QT_QTTEST_LIBRARY} ) +target_link_libraries( testScreenPaintData kwineffects ${Qt5Test_LIBRARIES} ) ######################################################## # Test WindowPaintData @@ -17,7 +17,7 @@ target_link_libraries( testScreenPaintData kwineffects ${QT_QTCORE_LIBRARY} ${QT set( testWindowPaintData_SRCS test_window_paint_data.cpp ) kde4_add_unit_test( testWindowPaintData TESTNAME kwin-TestWindowPaintData ${testWindowPaintData_SRCS} ) -target_link_libraries( testWindowPaintData kwineffects ${QT_QTCORE_LIBRARY} ${QT_QTGUI_LIBRARY} ${QT_QTTEST_LIBRARY} ) +target_link_libraries( testWindowPaintData kwineffects ${Qt5Widgets_LIBRARIES} ${Qt5Test_LIBRARIES} ) ######################################################## # Test VirtualDesktopManager @@ -49,9 +49,11 @@ set( testClientMachine_SRCS kde4_add_unit_test( testClientMachine TESTNAME kwin-TestClientMachine ${testClientMachine_SRCS} ) target_link_libraries( testClientMachine - ${QT_QTTEST_LIBRARY} - ${QT_QTCORE_LIBRARY} - ${KDE4_KDEUI_LIBS} + ${Qt5Test_LIBRARIES} + ${Qt5X11Extras_LIBRARIES} + ${Qt5Widgets_LIBRARIES} + ${KDE4_KDECORE_LIBS} # kdebug + KF5::KWindowSystem ${XCB_XCB_LIBRARIES} ${XCB_XFIXES_LIBRARIES} ${X11_XCB_LIBRARIES} @@ -68,9 +70,9 @@ set( testXcbWrapper_SRCS kde4_add_unit_test( testXcbWrapper TESTNAME kwin-TestXcbWrapper ${testXcbWrapper_SRCS} ) target_link_libraries( testXcbWrapper - ${QT_QTTEST_LIBRARY} - ${QT_QTCORE_LIBRARY} - ${QT_QTGUI_LIBRARY} + ${Qt5Test_LIBRARIES} + ${Qt5X11Extras_LIBRARIES} + ${Qt5Widgets_LIBRARIES} ${XCB_XCB_LIBRARIES} ${X11_XCB_LIBRARIES} ) @@ -84,9 +86,9 @@ set( testXcbWindow_SRCS kde4_add_unit_test( testXcbWindow TESTNAME kwin-TestXcbWindow ${testXcbWindow_SRCS} ) target_link_libraries( testXcbWindow - ${QT_QTTEST_LIBRARY} - ${QT_QTCORE_LIBRARY} - ${QT_QTGUI_LIBRARY} + ${Qt5Test_LIBRARIES} + ${Qt5X11Extras_LIBRARIES} + ${Qt5Widgets_LIBRARIES} ${XCB_XCB_LIBRARIES} ${X11_XCB_LIBRARIES} )