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