diff options
author | Robert Tari <robert@tari.in> | 2022-08-14 19:44:46 +0200 |
---|---|---|
committer | Robert Tari <robert@tari.in> | 2022-08-16 18:10:24 +0200 |
commit | be468e9659bc275c3e35a71b847f23a2e498d3d8 (patch) | |
tree | 7de34b5879812b342e97d89e3c6171eb487ca1c4 /data | |
parent | 8963b201e55613759c59a593d3db66d3f4c12da1 (diff) | |
download | ayatana-indicator-printers-be468e9659bc275c3e35a71b847f23a2e498d3d8.tar.gz ayatana-indicator-printers-be468e9659bc275c3e35a71b847f23a2e498d3d8.tar.bz2 ayatana-indicator-printers-be468e9659bc275c3e35a71b847f23a2e498d3d8.zip |
Add CMakeLists.txt files
Diffstat (limited to 'data')
-rw-r--r-- | data/CMakeLists.txt | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/data/CMakeLists.txt b/data/CMakeLists.txt new file mode 100644 index 0000000..20245cd --- /dev/null +++ b/data/CMakeLists.txt @@ -0,0 +1,12 @@ +# ayatana-indicator-printers.service +pkg_check_modules (SYSTEMD systemd) + +if (${SYSTEMD_FOUND}) + pkg_get_variable (SYSTEMD_USER_DIR systemd systemduserunitdir) + configure_file ("${CMAKE_CURRENT_SOURCE_DIR}/ayatana-indicator-printers.service.in" "${CMAKE_CURRENT_BINARY_DIR}/ayatana-indicator-printers.service" @ONLY) + install (FILES "${CMAKE_CURRENT_BINARY_DIR}/ayatana-indicator-printers.service" DESTINATION "${SYSTEMD_USER_DIR}") +endif () + +# ayatana-indicator-printers.desktop +configure_file ("${CMAKE_CURRENT_SOURCE_DIR}/ayatana-indicator-printers.desktop.in" "${CMAKE_CURRENT_BINARY_DIR}/ayatana-indicator-printers.desktop" @ONLY) +install (FILES "${CMAKE_CURRENT_BINARY_DIR}/ayatana-indicator-printers.desktop" DESTINATION "/etc/xdg/autostart") |