aboutsummaryrefslogtreecommitdiff
path: root/src/CMakeLists.txt
blob: d0fdbd1e86cb094d45c947eb68767e7938ecccb5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# cups-notifier.h
# cups-notifier.c
include (GdbusCodegen)
add_gdbus_codegen_with_namespace (CUPS_NOTIFIER cups-notifier org.cups.cupsd Cups "${CMAKE_CURRENT_SOURCE_DIR}/org.cups.cupsd.Notifier.xml")

# libayatanaindicatorprintersservice.a
add_library (ayatanaindicatorprintersservice STATIC
    indicator-printers-service.h
    indicator-printers-service.c
    indicator-printer-state-notifier.c
    indicator-printer-state-notifier.h
    spawn-printer-settings.c
    spawn-printer-settings.h
    dbus-names.h
    ${CUPS_NOTIFIER})
target_include_directories (ayatanaindicatorprintersservice PUBLIC ${SERVICE_INCLUDE_DIRS} ${CMAKE_CURRENT_BINARY_DIR})
target_compile_definitions (ayatanaindicatorprintersservice PUBLIC GETTEXT_PACKAGE="${GETTEXT_PACKAGE}" LOCALEDIR="${CMAKE_INSTALL_FULL_LOCALEDIR}")

# ayatana-indicator-printers-service
add_executable (ayatana-indicator-printers-service main.c)
target_link_libraries (ayatana-indicator-printers-service ayatanaindicatorprintersservice ${SERVICE_LIBRARIES})
install (TARGETS ayatana-indicator-printers-service RUNTIME DESTINATION ${CMAKE_INSTALL_FULL_LIBEXECDIR}/${CMAKE_PROJECT_NAME})