Add FindXorgServer.cmake and use it for touchpad KCM

Authored by asturmlechner on May 7 2020, 2:18 PM.

Description

Add FindXorgServer.cmake and use it for touchpad KCM

Summary:
x11 backend of the touchpad KCM uses xserver-properties.h that is part of
xorg-server package. As XORG_INCLUDE_DIRS seems to be empty, so far, it was
relying on Synaptics_INCLUDE_DIRS implicitly and worked only if the header
happened to be in the same directory as Synaptics' which is the case most of
the time.

FindXorgServer.cmake is just a copy of FindXorgLibinput, adapted accordingly.

Test Plan:
Pointed Synaptics_INCLUDE_DIRS somewhere else than /usr/include/xorg and build
succeeded.

Reviewers: Plasma, zzag

Reviewed By: Plasma, zzag

Subscribers: broulik, plasma-devel

Tags: Plasma

Differential Revision: https://phabricator.kde.org/D29514

Details

Committed
asturmlechnerMay 7 2020, 7:19 PM
Reviewer
Plasma
Differential Revision
D29514: Add FindXorgServer.cmake and use it for touchpad KCM
Parents
R119:67fe9de5e9c2: Merge branch 'Plasma/5.18'
Branches
Unknown
Tags
Unknown