diff options
author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2022-09-05 12:56:25 +0200 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2022-09-05 12:56:25 +0200 |
commit | e9534394c942cde1d043ce45f88f617b2018224f (patch) | |
tree | 0ecf0458b8b968eb8872deae2c73cd178b2fa97f /src/CMakeLists.txt | |
parent | 0ef8ce7677688b51ac69b3ba797f4d718f909f2f (diff) | |
parent | 9e5b57ca293414e51f82f70dd374b70798d08d44 (diff) | |
download | ayatana-indicator-printers-e9534394c942cde1d043ce45f88f617b2018224f.tar.gz ayatana-indicator-printers-e9534394c942cde1d043ce45f88f617b2018224f.tar.bz2 ayatana-indicator-printers-e9534394c942cde1d043ce45f88f617b2018224f.zip |
Merge branch 'tari01-pr/move-to-cmake'
Attributes GH PR #17: https://github.com/AyatanaIndicators/ayatana-indicator-printers/pull/17
Diffstat (limited to 'src/CMakeLists.txt')
-rw-r--r-- | src/CMakeLists.txt | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt new file mode 100644 index 0000000..98af322 --- /dev/null +++ b/src/CMakeLists.txt @@ -0,0 +1,31 @@ +# libayatana-printersmenu.so +add_library (ayatana-printersmenu SHARED + indicator-printers.c + indicator-printers.h + indicator-menu-item.c + indicator-menu-item.h + dbus-names.h) +target_include_directories (ayatana-printersmenu PUBLIC ${SERVICE_INCLUDE_DIRS}) +target_compile_definitions (ayatana-printersmenu PUBLIC GETTEXT_PACKAGE="${GETTEXT_PACKAGE}" PACKAGE_NAME="${PACKAGE}") +install (TARGETS ayatana-printersmenu DESTINATION "${CMAKE_INSTALL_FULL_LIBDIR}/ayatana-indicators3/7/") + +# 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") + +# ayatana-indicator-printers-service +add_executable (ayatana-indicator-printers-service + indicator-printers-service.c + indicator-printers-menu.c + indicator-printers-menu.h + 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 (ayatana-indicator-printers-service PUBLIC ${SERVICE_INCLUDE_DIRS} ${CMAKE_CURRENT_BINARY_DIR}) +target_link_libraries (ayatana-indicator-printers-service ${SERVICE_LIBRARIES}) +target_compile_definitions (ayatana-indicator-printers-service PUBLIC GETTEXT_PACKAGE="${GETTEXT_PACKAGE}" LOCALEDIR="${CMAKE_INSTALL_FULL_LOCALEDIR}") +install (TARGETS ayatana-indicator-printers-service RUNTIME DESTINATION ${CMAKE_INSTALL_FULL_LIBEXECDIR}/${CMAKE_PROJECT_NAME}) |