diff options
author | fiaxh <git@mx.ax.lt> | 2018-03-02 13:13:15 +0100 |
---|---|---|
committer | fiaxh <git@mx.ax.lt> | 2018-03-05 15:43:02 +0100 |
commit | a8ee61b34c4c6c73cda94ac5f60529e892b3666b (patch) | |
tree | 5f23d21dde98505eeca74490d3364be9d612e35a /plugins/notification-sound/CMakeLists.txt | |
parent | 08c8b9c6d63784f3db1fa3423e629db3ca461b94 (diff) | |
download | dino-a8ee61b34c4c6c73cda94ac5f60529e892b3666b.tar.gz dino-a8ee61b34c4c6c73cda94ac5f60529e892b3666b.zip |
Move notification sounds (canberra dependency) into plugin, introduce libdino/NotificationEvents
Diffstat (limited to 'plugins/notification-sound/CMakeLists.txt')
-rw-r--r-- | plugins/notification-sound/CMakeLists.txt | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/plugins/notification-sound/CMakeLists.txt b/plugins/notification-sound/CMakeLists.txt new file mode 100644 index 00000000..85963d25 --- /dev/null +++ b/plugins/notification-sound/CMakeLists.txt @@ -0,0 +1,28 @@ +find_packages(NOTIFICATION_SOUND_PACKAGES REQUIRED + Canberra + Gee + GLib + GModule + GObject + GDKPixbuf2 +) + +vala_precompile(NOTIFICATION_SOUND_VALA_C +SOURCES + src/plugin.vala + src/register_plugin.vala +CUSTOM_VAPIS + ${CMAKE_BINARY_DIR}/exports/xmpp-vala.vapi + ${CMAKE_BINARY_DIR}/exports/dino.vapi + ${CMAKE_BINARY_DIR}/exports/qlite.vapi +PACKAGES + ${NOTIFICATION_SOUND_PACKAGES} +) + +add_definitions(${VALA_CFLAGS}) +add_library(notification-sound SHARED ${NOTIFICATION_SOUND_VALA_C}) +target_link_libraries(notification-sound libdino ${NOTIFICATION_SOUND_PACKAGES}) +set_target_properties(notification-sound PROPERTIES PREFIX "") +set_target_properties(notification-sound PROPERTIES LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/plugins/) + +install(TARGETS notification-sound ${PLUGIN_INSTALL}) |