Changeset View
Changeset View
Standalone View
Standalone View
autotests/libinput/CMakeLists.txt
1 | include_directories(${Libinput_INCLUDE_DIRS}) | 1 | include_directories(${Libinput_INCLUDE_DIRS}) | ||
---|---|---|---|---|---|
2 | include_directories(${UDEV_INCLUDE_DIR}) | 2 | include_directories(${UDEV_INCLUDE_DIR}) | ||
3 | ######################################################## | 3 | ######################################################## | ||
4 | # Test Devices | 4 | # Test Devices | ||
5 | ######################################################## | 5 | ######################################################## | ||
6 | set( testLibinputDevice_SRCS device_test.cpp mock_libinput.cpp ../../libinput/device.cpp ) | 6 | set( testLibinputDevice_SRCS device_test.cpp mock_libinput.cpp ../../libinput/device.cpp ) | ||
7 | add_executable(testLibinputDevice ${testLibinputDevice_SRCS}) | 7 | add_executable(testLibinputDevice ${testLibinputDevice_SRCS}) | ||
8 | target_link_libraries( testLibinputDevice Qt5::Test Qt5::DBus KF5::ConfigCore) | 8 | target_link_libraries( testLibinputDevice Qt5::Test Qt5::DBus KF5::ConfigCore) | ||
9 | add_test(kwin-testLibinputDevice testLibinputDevice) | 9 | add_test(NAME kwin-testLibinputDevice COMMAND testLibinputDevice) | ||
10 | ecm_mark_as_test(testLibinputDevice) | 10 | ecm_mark_as_test(testLibinputDevice) | ||
11 | 11 | | |||
12 | ######################################################## | 12 | ######################################################## | ||
13 | # Test Key Event | 13 | # Test Key Event | ||
14 | ######################################################## | 14 | ######################################################## | ||
15 | set( testLibinputKeyEvent_SRCS | 15 | set( testLibinputKeyEvent_SRCS | ||
16 | key_event_test.cpp | 16 | key_event_test.cpp | ||
17 | mock_libinput.cpp | 17 | mock_libinput.cpp | ||
18 | ../../libinput/device.cpp | 18 | ../../libinput/device.cpp | ||
19 | ../../libinput/events.cpp | 19 | ../../libinput/events.cpp | ||
20 | ) | 20 | ) | ||
21 | add_executable(testLibinputKeyEvent ${testLibinputKeyEvent_SRCS}) | 21 | add_executable(testLibinputKeyEvent ${testLibinputKeyEvent_SRCS}) | ||
22 | target_link_libraries( testLibinputKeyEvent Qt5::Test Qt5::DBus Qt5::Widgets KF5::ConfigCore) | 22 | target_link_libraries( testLibinputKeyEvent Qt5::Test Qt5::DBus Qt5::Widgets KF5::ConfigCore) | ||
23 | add_test(kwin-testLibinputKeyEvent testLibinputKeyEvent) | 23 | add_test(NAME kwin-testLibinputKeyEvent COMMAND testLibinputKeyEvent) | ||
24 | ecm_mark_as_test(testLibinputKeyEvent) | 24 | ecm_mark_as_test(testLibinputKeyEvent) | ||
25 | 25 | | |||
26 | ######################################################## | 26 | ######################################################## | ||
27 | # Test Pointer Event | 27 | # Test Pointer Event | ||
28 | ######################################################## | 28 | ######################################################## | ||
29 | set( testLibinputPointerEvent_SRCS | 29 | set( testLibinputPointerEvent_SRCS | ||
30 | pointer_event_test.cpp | 30 | pointer_event_test.cpp | ||
31 | mock_libinput.cpp | 31 | mock_libinput.cpp | ||
32 | ../../libinput/device.cpp | 32 | ../../libinput/device.cpp | ||
33 | ../../libinput/events.cpp | 33 | ../../libinput/events.cpp | ||
34 | ) | 34 | ) | ||
35 | add_executable(testLibinputPointerEvent ${testLibinputPointerEvent_SRCS}) | 35 | add_executable(testLibinputPointerEvent ${testLibinputPointerEvent_SRCS}) | ||
36 | target_link_libraries( testLibinputPointerEvent Qt5::Test Qt5::DBus Qt5::Widgets KF5::ConfigCore) | 36 | target_link_libraries( testLibinputPointerEvent Qt5::Test Qt5::DBus Qt5::Widgets KF5::ConfigCore) | ||
37 | add_test(kwin-testLibinputPointerEvent testLibinputPointerEvent) | 37 | add_test(NAME kwin-testLibinputPointerEvent COMMAND testLibinputPointerEvent) | ||
38 | ecm_mark_as_test(testLibinputPointerEvent) | 38 | ecm_mark_as_test(testLibinputPointerEvent) | ||
39 | 39 | | |||
40 | ######################################################## | 40 | ######################################################## | ||
41 | # Test Touch Event | 41 | # Test Touch Event | ||
42 | ######################################################## | 42 | ######################################################## | ||
43 | set( testLibinputTouchEvent_SRCS | 43 | set( testLibinputTouchEvent_SRCS | ||
44 | touch_event_test.cpp | 44 | touch_event_test.cpp | ||
45 | mock_libinput.cpp | 45 | mock_libinput.cpp | ||
46 | ../../libinput/device.cpp | 46 | ../../libinput/device.cpp | ||
47 | ../../libinput/events.cpp | 47 | ../../libinput/events.cpp | ||
48 | ) | 48 | ) | ||
49 | add_executable(testLibinputTouchEvent ${testLibinputTouchEvent_SRCS}) | 49 | add_executable(testLibinputTouchEvent ${testLibinputTouchEvent_SRCS}) | ||
50 | target_link_libraries( testLibinputTouchEvent Qt5::Test Qt5::DBus Qt5::Widgets KF5::ConfigCore) | 50 | target_link_libraries( testLibinputTouchEvent Qt5::Test Qt5::DBus Qt5::Widgets KF5::ConfigCore) | ||
51 | add_test(kwin-testLibinputTouchEvent testLibinputTouchEvent) | 51 | add_test(NAME kwin-testLibinputTouchEvent COMMAND testLibinputTouchEvent) | ||
52 | ecm_mark_as_test(testLibinputTouchEvent) | 52 | ecm_mark_as_test(testLibinputTouchEvent) | ||
53 | 53 | | |||
54 | ######################################################## | 54 | ######################################################## | ||
55 | # Test Gesture Event | 55 | # Test Gesture Event | ||
56 | ######################################################## | 56 | ######################################################## | ||
57 | set( testLibinputGestureEvent_SRCS | 57 | set( testLibinputGestureEvent_SRCS | ||
58 | gesture_event_test.cpp | 58 | gesture_event_test.cpp | ||
59 | mock_libinput.cpp | 59 | mock_libinput.cpp | ||
60 | ../../libinput/device.cpp | 60 | ../../libinput/device.cpp | ||
61 | ../../libinput/events.cpp | 61 | ../../libinput/events.cpp | ||
62 | ) | 62 | ) | ||
63 | add_executable(testLibinputGestureEvent ${testLibinputGestureEvent_SRCS}) | 63 | add_executable(testLibinputGestureEvent ${testLibinputGestureEvent_SRCS}) | ||
64 | target_link_libraries( testLibinputGestureEvent Qt5::Test Qt5::DBus Qt5::Widgets KF5::ConfigCore) | 64 | target_link_libraries( testLibinputGestureEvent Qt5::Test Qt5::DBus Qt5::Widgets KF5::ConfigCore) | ||
65 | add_test(kwin-testLibinputGestureEvent testLibinputGestureEvent) | 65 | add_test(NAME kwin-testLibinputGestureEvent COMMAND testLibinputGestureEvent) | ||
66 | ecm_mark_as_test(testLibinputGestureEvent) | 66 | ecm_mark_as_test(testLibinputGestureEvent) | ||
67 | 67 | | |||
68 | ######################################################## | 68 | ######################################################## | ||
69 | # Test Context | 69 | # Test Context | ||
70 | ######################################################## | 70 | ######################################################## | ||
71 | set( testLibinputContext_SRCS | 71 | set( testLibinputContext_SRCS | ||
72 | context_test.cpp | 72 | context_test.cpp | ||
73 | mock_libinput.cpp | 73 | mock_libinput.cpp | ||
74 | mock_udev.cpp | 74 | mock_udev.cpp | ||
75 | ../../libinput/context.cpp | 75 | ../../libinput/context.cpp | ||
76 | ../../libinput/device.cpp | 76 | ../../libinput/device.cpp | ||
77 | ../../libinput/events.cpp | 77 | ../../libinput/events.cpp | ||
78 | ../../libinput/libinput_logging.cpp | 78 | ../../libinput/libinput_logging.cpp | ||
79 | ../../logind.cpp | 79 | ../../logind.cpp | ||
80 | ) | 80 | ) | ||
81 | add_executable(testLibinputContext ${testLibinputContext_SRCS}) | 81 | add_executable(testLibinputContext ${testLibinputContext_SRCS}) | ||
82 | target_link_libraries( testLibinputContext | 82 | target_link_libraries( testLibinputContext | ||
83 | Qt5::DBus | 83 | Qt5::DBus | ||
84 | Qt5::Test | 84 | Qt5::Test | ||
85 | Qt5::Widgets | 85 | Qt5::Widgets | ||
86 | KF5::ConfigCore | 86 | KF5::ConfigCore | ||
87 | KF5::WindowSystem | 87 | KF5::WindowSystem | ||
88 | ) | 88 | ) | ||
89 | add_test(kwin-testLibinputContext testLibinputContext) | 89 | add_test(NAME kwin-testLibinputContext COMMAND testLibinputContext) | ||
90 | ecm_mark_as_test(testLibinputContext) | 90 | ecm_mark_as_test(testLibinputContext) | ||
91 | 91 | | |||
92 | ######################################################## | 92 | ######################################################## | ||
93 | # Test Input Events | 93 | # Test Input Events | ||
94 | ######################################################## | 94 | ######################################################## | ||
95 | set( testInputEvents_SRCS input_event_test.cpp mock_libinput.cpp ../../libinput/device.cpp ../../input_event.cpp ) | 95 | set( testInputEvents_SRCS input_event_test.cpp mock_libinput.cpp ../../libinput/device.cpp ../../input_event.cpp ) | ||
96 | add_executable(testInputEvents ${testInputEvents_SRCS}) | 96 | add_executable(testInputEvents ${testInputEvents_SRCS}) | ||
97 | target_link_libraries( testInputEvents Qt5::Test Qt5::DBus Qt5::Gui KF5::ConfigCore) | 97 | target_link_libraries( testInputEvents Qt5::Test Qt5::DBus Qt5::Gui KF5::ConfigCore) | ||
98 | add_test(kwin-testInputEvents testInputEvents) | 98 | add_test(NAME kwin-testInputEvents COMMAND testInputEvents) | ||
99 | ecm_mark_as_test(testInputEvents) | 99 | ecm_mark_as_test(testInputEvents) |