zeit: use ECM instead of setting install directories manually

This commit is contained in:
blaze 2019-08-07 14:19:47 +03:00
parent 0851396222
commit 150180c05a

View File

@ -3,8 +3,12 @@ add_executable(zeit_helper zeithelper.cpp)
target_link_libraries(zeit_helper KF5::AuthCore)
target_include_directories(zeit_helper PRIVATE Qt5::Core KF5::Auth)
set(SYSCONF_INSTALL_DIR "/etc")
set(DBUS_SYSTEM_SERVICES_INSTALL_DIR "share/dbus-1/system-services")
find_package (ECM REQUIRED NO_MODULE)
set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH})
include(KDEInstallDirs)
#set(SYSCONF_INSTALL_DIR "/etc")
#set(DBUS_SYSTEM_SERVICES_INSTALL_DIR "share/dbus-1/system-services")
install(TARGETS zeit_helper DESTINATION ${KAUTH_HELPER_INSTALL_DIR})
kauth_install_helper_files(zeit_helper local.zeit.crontab root)
kauth_install_actions(local.zeit.crontab local.zeit.crontab.actions)