build: honour CMake install prefix in hardcoded paths
authorJo-Philipp Wich <jo@mein.io>
Fri, 3 Dec 2021 22:36:35 +0000 (23:36 +0100)
committerJo-Philipp Wich <jo@mein.io>
Wed, 8 Dec 2021 19:09:24 +0000 (20:09 +0100)
commit75a96dc281d4e3652655155e85ea04abcffcb5e9
tree29381b438ca1ed0777e8a040201b811d5d389aeb
parentd11ffe9383ae0ec34836421926364b24c1d891ca
build: honour CMake install prefix in hardcoded paths

Search plugins, ACL ressources and other data files relative to the compile
time CMAKE_INSTALL_PREFIX instead of hardcoding `/usr`.

Also ensure that plugin libraries are installed into the lib/rpcd subdir.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
CMakeLists.txt
include/rpcd/plugin.h
include/rpcd/session.h