aboutsummaryrefslogtreecommitdiff
path: root/plugins/notification-sound/CMakeLists.txt
blob: 85963d2502202ee5f69992ec26cad0fe9965d99e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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})