mirror of
https://github.com/loimu/zeit.git
synced 2025-09-15 12:58:44 +08:00
zeit: use ECM instead of setting install directories manually
This commit is contained in:
parent
0851396222
commit
150180c05a
@ -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)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user