blob: c5cdc56c280d81f369953541b0ae0354ecd9b6a6 (
plain)
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
include(GdbusCodegen)
set(SOURCES_GEN)
# indicator-messages-service.h
# indicator-messages-service.c
add_gdbus_codegen_with_namespace(
SOURCES_GEN indicator-messages-service
org.ayatana.indicator.messages
IndicatorMessages
${CMAKE_SOURCE_DIR}/common/org.ayatana.indicator.messages.service.xml
)
# indicator-messages-application.h
# indicator-messages-application.c
add_gdbus_codegen_with_namespace(
SOURCES_GEN indicator-messages-application
org.ayatana.indicator.messages
IndicatorMessages
${CMAKE_SOURCE_DIR}/common/org.ayatana.indicator.messages.application.xml
)
# ayatana-indicator-messages-service
set(
SOURCES
gactionmuxer.c
gsettingsstrv.c
im-accounts-service.c
im-application-list.c
im-desktop-menu.c
im-menu.c
im-phone-menu.c
indicator-desktop-shortcuts.c
messages-service.c
)
file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/config.h" "")# Dummy file - drop all includes once we've switched to CMake
set_source_files_properties(${SOURCES} PROPERTIES COMPILE_FLAGS ${COMPILE_FLAGS})
add_executable("ayatana-indicator-messages-service" ${SOURCES} ${SOURCES_GEN})
target_compile_definitions(
"ayatana-indicator-messages-service" PUBLIC
G_LOG_DOMAIN="Ayatana-Indicator-Messages"
GETTEXT_PACKAGE="${GETTEXT_PACKAGE}"
LOCALEDIR="${CMAKE_INSTALL_FULL_LOCALEDIR}"
)
target_include_directories("ayatana-indicator-messages-service" PUBLIC ${PROJECT_DEPS_INCLUDE_DIRS} ${CMAKE_CURRENT_BINARY_DIR})
target_link_libraries("ayatana-indicator-messages-service" ${PROJECT_DEPS_LIBRARIES})
install(TARGETS "ayatana-indicator-messages-service" RUNTIME DESTINATION "${CMAKE_INSTALL_FULL_LIBEXECDIR}/ayatana-indicator-messages")
|