diff options
author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2021-10-21 22:27:03 +0200 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2021-10-21 22:27:03 +0200 |
commit | b2beaa3431ac84614ae45f58f2771fb6b97f6201 (patch) | |
tree | 61b44606d995290f8fcd062f15176a8adc8fceb1 /src/CMakeLists.txt | |
parent | 9ad235af84652bc64c1d28a6b2c68eb55e1b401c (diff) | |
parent | 421e9dcda36265642403c42b687e80769506b5b1 (diff) | |
download | ayatana-indicator-messages-b2beaa3431ac84614ae45f58f2771fb6b97f6201.tar.gz ayatana-indicator-messages-b2beaa3431ac84614ae45f58f2771fb6b97f6201.tar.bz2 ayatana-indicator-messages-b2beaa3431ac84614ae45f58f2771fb6b97f6201.zip |
Merge branch 'tari01-pr/move-to-cmake'
Attributes GH PR #19: https://github.com/AyatanaIndicators/ayatana-indicator-messages/pull/19
Diffstat (limited to 'src/CMakeLists.txt')
-rw-r--r-- | src/CMakeLists.txt | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt new file mode 100644 index 0000000..4c8ace8 --- /dev/null +++ b/src/CMakeLists.txt @@ -0,0 +1,49 @@ +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 +) + +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") |