2014-01-30 14:28:12 +00:00
|
|
|
if (XCB_ICCCM_FOUND)
|
|
|
|
set(normalhintsbasesizetest_SRCS normalhintsbasesizetest.cpp)
|
|
|
|
add_executable(normalhintsbasesizetest ${normalhintsbasesizetest_SRCS})
|
2014-03-18 16:53:22 +00:00
|
|
|
target_link_libraries(normalhintsbasesizetest XCB::XCB XCB::ICCCM KF5::WindowSystem)
|
2014-01-30 14:28:12 +00:00
|
|
|
endif()
|
2014-02-20 11:39:23 +00:00
|
|
|
|
|
|
|
# next target
|
|
|
|
set(screenedgeshowtest_SRCS screenedgeshowtest.cpp)
|
|
|
|
add_executable(screenedgeshowtest ${screenedgeshowtest_SRCS})
|
2016-10-17 09:17:48 +00:00
|
|
|
target_link_libraries(screenedgeshowtest Qt5::Widgets Qt5::X11Extras KF5::ConfigCore KF5::WindowSystem KF5::WaylandClient ${XCB_XCB_LIBRARY})
|
2014-08-21 10:57:50 +00:00
|
|
|
|
2015-03-23 08:54:37 +00:00
|
|
|
if (KF5Wayland_FOUND)
|
2014-08-21 10:57:50 +00:00
|
|
|
add_definitions(-DSOURCE_DIR="${KWIN_SOURCE_DIR}")
|
|
|
|
set(waylandclienttest_SRCS
|
|
|
|
waylandclienttest.cpp
|
|
|
|
)
|
|
|
|
add_executable(waylandclienttest ${waylandclienttest_SRCS})
|
2015-03-23 08:54:37 +00:00
|
|
|
target_link_libraries(waylandclienttest Qt5::Core Qt5::Gui KF5::WaylandClient)
|
2014-08-21 10:57:50 +00:00
|
|
|
endif()
|
2014-08-14 12:43:57 +00:00
|
|
|
|
|
|
|
if (HAVE_INPUT)
|
|
|
|
set(libinputtest_SRCS
|
|
|
|
libinputtest.cpp
|
|
|
|
${KWIN_SOURCE_DIR}/libinput/context.cpp
|
|
|
|
${KWIN_SOURCE_DIR}/libinput/connection.cpp
|
[libinput] Add a wrapper class Device for a libinput_device
Summary:
The Device class wraps all the information we can get from libinput
about the device, like whether it's a keyboard, pointer, touch, etc.
In addition some more information is queried to figure out how "useful"
a device is. For a keyboard all alphanumeric keys are checked whether
they exist, for a pointer all (normal) buttons are queried.
All the information is exposed as Q_PROPERTY and used by the
DebugConsole. The DebugConsole gained a new tab "Input Devices" which
renders all devices and their properties in a tree view. When plugging
in/out a device, the model gets reset, so it's always up to date.
The new Device class can be used in future to configure the device,
e.g. disable touch pad, set mouse acceleration, etc.
Reviewers: #plasma
Subscribers: plasma-devel
Projects: #plasma
Differential Revision: https://phabricator.kde.org/D1538
2016-05-04 11:42:26 +00:00
|
|
|
${KWIN_SOURCE_DIR}/libinput/device.cpp
|
2014-08-14 12:43:57 +00:00
|
|
|
${KWIN_SOURCE_DIR}/libinput/events.cpp
|
2015-07-31 10:43:06 +00:00
|
|
|
${KWIN_SOURCE_DIR}/libinput/libinput_logging.cpp
|
2014-08-15 07:30:08 +00:00
|
|
|
${KWIN_SOURCE_DIR}/logind.cpp
|
2015-04-08 08:25:51 +00:00
|
|
|
${KWIN_SOURCE_DIR}/udev.cpp
|
2014-08-14 12:43:57 +00:00
|
|
|
)
|
|
|
|
add_executable(libinputtest ${libinputtest_SRCS})
|
2016-05-06 10:28:07 +00:00
|
|
|
add_definitions(-DKWIN_BUILD_TESTING)
|
|
|
|
target_link_libraries(libinputtest Qt5::Core Qt5::DBus Libinput::Libinput ${UDEV_LIBS} KF5::ConfigCore KF5::GlobalAccel KF5::WindowSystem)
|
2014-08-14 12:43:57 +00:00
|
|
|
endif()
|
2016-07-06 11:32:38 +00:00
|
|
|
|
|
|
|
add_executable(x11shadowreader x11shadowreader.cpp)
|
|
|
|
target_link_libraries(x11shadowreader XCB::XCB Qt5::Widgets Qt5::X11Extras KF5::ConfigCore KF5::WindowSystem)
|
2016-10-27 07:10:08 +00:00
|
|
|
|
|
|
|
add_executable(pointergestures pointergesturestest.cpp)
|
|
|
|
add_definitions(-DDIR="${CMAKE_CURRENT_SOURCE_DIR}")
|
|
|
|
target_link_libraries(pointergestures Qt5::Gui Qt5::Quick KF5::WaylandClient)
|
2017-11-05 16:09:49 +00:00
|
|
|
|
|
|
|
add_executable(cursorhotspottest cursorhotspottest.cpp)
|
|
|
|
target_link_libraries(cursorhotspottest Qt5::Widgets)
|
2017-11-06 16:00:15 +00:00
|
|
|
|
|
|
|
add_executable(orientationtest orientationtest.cpp ../orientation_sensor.cpp)
|
|
|
|
target_link_libraries(orientationtest Qt5::Widgets Qt5::Sensors KF5::Notifications KF5::I18n)
|