Changeset View
Changeset View
Standalone View
Standalone View
tests/CMakeLists.txt
Show All 38 Lines | |||||
39 | 39 | | |||
40 | add_executable(pointergestures pointergesturestest.cpp) | 40 | add_executable(pointergestures pointergesturestest.cpp) | ||
41 | add_definitions(-DDIR="${CMAKE_CURRENT_SOURCE_DIR}") | 41 | add_definitions(-DDIR="${CMAKE_CURRENT_SOURCE_DIR}") | ||
42 | target_link_libraries(pointergestures Qt5::Gui Qt5::Quick KF5::WaylandClient) | 42 | target_link_libraries(pointergestures Qt5::Gui Qt5::Quick KF5::WaylandClient) | ||
43 | 43 | | |||
44 | add_executable(cursorhotspottest cursorhotspottest.cpp) | 44 | add_executable(cursorhotspottest cursorhotspottest.cpp) | ||
45 | target_link_libraries(cursorhotspottest Qt5::Widgets) | 45 | target_link_libraries(cursorhotspottest Qt5::Widgets) | ||
46 | 46 | | |||
47 | add_executable(orientationtest orientationtest.cpp ../orientation_sensor.cpp) | 47 | include_directories(${CMAKE_CURRENT_BINARY_DIR}) | ||
48 | target_link_libraries(orientationtest Qt5::Widgets Qt5::Sensors KF5::Notifications KF5::I18n) | 48 | set( orientationtest_SRCS | ||
49 | orientationtest.cpp | ||||
50 | ../orientation_sensor.cpp | ||||
51 | ) | ||||
52 | qt5_add_dbus_adaptor( orientationtest_SRCS ${CMAKE_CURRENT_SOURCE_DIR}/../org.kde.kwin.OrientationSensor.xml ${CMAKE_CURRENT_SOURCE_DIR}/../orientation_sensor.h KWin::OrientationSensor) | ||||
53 | add_executable(orientationtest ${orientationtest_SRCS}) | ||||
54 | target_link_libraries(orientationtest Qt5::DBus Qt5::Widgets Qt5::Sensors KF5::ConfigCore KF5::Notifications KF5::I18n) |