|
14 |
${POLKITQT-1_AGENT_LIBRARY} |
14 |
${POLKITQT-1_AGENT_LIBRARY} |
15 |
) |
15 |
) |
16 |
|
16 |
|
17 |
configure_file(polkit-kde-authentication-agent-1.desktop.in ${CMAKE_BINARY_DIR}/polkit-kde-authentication-agent-1.desktop) |
|
|
18 |
|
19 |
install(TARGETS polkit-kde-authentication-agent-1 DESTINATION ${LIBEXEC_INSTALL_DIR}) |
17 |
install(TARGETS polkit-kde-authentication-agent-1 DESTINATION ${LIBEXEC_INSTALL_DIR}) |
20 |
|
|
|
21 |
# Install .desktop file to the XDG_CONFIG_DIRS if exists, to the /etc/xdg/autostart otherwise |
22 |
set (DESKTOP_INSTALL_DIR $ENV{XDG_CONFIG_DIRS}) |
23 |
if (DESKTOP_INSTALL_DIR) |
24 |
else (DESKTOP_INSTALL_DIR) |
25 |
set (DESKTOP_INSTALL_DIR /etc/xdg/autostart) |
26 |
endif (DESKTOP_INSTALL_DIR) |
27 |
|
28 |
install(FILES ${CMAKE_BINARY_DIR}/polkit-kde-authentication-agent-1.desktop DESTINATION ${DESKTOP_INSTALL_DIR}) |