diff options
author | Robert Tari <robert@tari.in> | 2021-10-15 00:28:09 +0200 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2021-10-21 21:55:54 +0200 |
commit | 813ad9093f7d7d7a37af255bbe676b9988502b60 (patch) | |
tree | 7241ba9efb24254851a20c88274f225ce2d86e00 /data | |
parent | 8ce6d07d97690e50d4da24441232b053a0eade1e (diff) | |
download | ayatana-indicator-messages-813ad9093f7d7d7a37af255bbe676b9988502b60.tar.gz ayatana-indicator-messages-813ad9093f7d7d7a37af255bbe676b9988502b60.tar.bz2 ayatana-indicator-messages-813ad9093f7d7d7a37af255bbe676b9988502b60.zip |
Add CMake files
Diffstat (limited to 'data')
-rw-r--r-- | data/CMakeLists.txt | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/data/CMakeLists.txt b/data/CMakeLists.txt new file mode 100644 index 0000000..03fba70 --- /dev/null +++ b/data/CMakeLists.txt @@ -0,0 +1,40 @@ +# org.ayatana.indicator.session.gschema.xml + +find_package(GSettings) +set(GSETTINGS_COMPILE ON) +add_schema("org.ayatana.indicator.messages.gschema.xml") + +# ayatana-indicator-messages.service + +pkg_check_modules(SYSTEMD systemd) + +if (${SYSTEMD_FOUND}) + pkg_get_variable(SYSTEMD_USER_DIR systemd systemduserunitdir) + set (pkglibexecdir "${CMAKE_INSTALL_FULL_LIBEXECDIR}/ayatana-indicator-messages")# Rewrite and drop once we've switched to CMake + configure_file("${CMAKE_CURRENT_SOURCE_DIR}/ayatana-indicator-messages.service.in" "${CMAKE_CURRENT_BINARY_DIR}/ayatana-indicator-messages.service") + install(FILES "${CMAKE_CURRENT_BINARY_DIR}/ayatana-indicator-messages.service" DESTINATION "${SYSTEMD_USER_DIR}") +endif() + +# ayatana-indicator-messages.desktop + +set(pkglibexecdir "${CMAKE_INSTALL_FULL_LIBEXECDIR}/ayatana-indicator-messages")# Rewrite and drop once we've switched to CMake +configure_file("${CMAKE_CURRENT_SOURCE_DIR}/ayatana-indicator-messages.desktop.in" "${CMAKE_CURRENT_BINARY_DIR}/ayatana-indicator-messages.desktop") +install(FILES "${CMAKE_CURRENT_BINARY_DIR}/ayatana-indicator-messages.desktop" DESTINATION "${CMAKE_INSTALL_FULL_SYSCONFDIR}/xdg/autostart") + +# org.ayatana.indicator.messages + +install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/org.ayatana.indicator.messages" DESTINATION "${CMAKE_INSTALL_FULL_DATAROOTDIR}/ayatana/indicators") + +# icons/* + +install( + DIRECTORY + icons/16x16 + icons/22x22 + icons/24x24 + icons/32x32 + icons/48x48 + icons/scalable + DESTINATION "${CMAKE_INSTALL_FULL_DATADIR}/icons/hicolor" + FILES_MATCHING PATTERN "*.png" PATTERN "*.svg" +) |