KService Installation Instructions
Download
git clone git://anongit.kde.org/kservice.git
Usage
CMake:
find_package(KF5Service) target_link_libraries(yourapp KF5::Service)
QMake:
QT += KService
If you are using CMake, you need to have
find_package(KF5Service)
(or similar) in your CMakeLists.txt file, and you need to link to KF5::Service.
Browse Source
KService on cgit.kde.org