diff options
author | Paul Olav Tvete <paul.tvete@qt.io> | 2016-08-05 11:53:43 +0200 |
---|---|---|
committer | Jędrzej Nowacki <jedrzej.nowacki@theqtcompany.com> | 2016-08-19 11:46:04 +0000 |
commit | 2cc758045e322873ad58f675a70c8d8366b5c318 (patch) | |
tree | 91843191d0d8dc5be0b243fd5863f7b4a5fdede2 /tests/auto/compositor/compositor/compositor.pro | |
parent | 9b7a5b428ba528dfb568af99b09e9e441f482e78 (diff) |
Fix autotest directory structure
The client and server parts are separate modules, so they need separate
top-level directories under tests/auto. This also makes it easier to add
new tests later.
Change-Id: I393341b6f4e8fc3afa480653f3482192e002e425
Reviewed-by: Giulio Camuffo <giulio.camuffo@kdab.com>
Diffstat (limited to 'tests/auto/compositor/compositor/compositor.pro')
-rw-r--r-- | tests/auto/compositor/compositor/compositor.pro | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/tests/auto/compositor/compositor/compositor.pro b/tests/auto/compositor/compositor/compositor.pro new file mode 100644 index 000000000..39d2179ad --- /dev/null +++ b/tests/auto/compositor/compositor/compositor.pro @@ -0,0 +1,36 @@ +CONFIG += testcase link_pkgconfig +TARGET = tst_compositor + +QT += testlib +QT += core-private gui-private compositor compositor-private + +!contains(QT_CONFIG, no-pkg-config) { + PKGCONFIG += wayland-client wayland-server +} else { + LIBS += -lwayland-client -lwayland-server +} + +config_xkbcommon { + !contains(QT_CONFIG, no-pkg-config) { + PKGCONFIG_PRIVATE += xkbcommon + } else { + LIBS_PRIVATE += -lxkbcommon + } +} else { + DEFINES += QT_NO_WAYLAND_XKB +} + +SOURCES += \ + tst_compositor.cpp \ + testcompositor.cpp \ + testkeyboardgrabber.cpp \ + mockclient.cpp \ + mockseat.cpp \ + testinputdevice.cpp + +HEADERS += \ + testcompositor.h \ + testkeyboardgrabber.h \ + mockclient.h \ + mockseat.h \ + testinputdevice.h |