diff options
author | Robert Tari <robert@tari.in> | 2021-10-15 00:28:09 +0200 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2021-10-21 21:55:54 +0200 |
commit | 813ad9093f7d7d7a37af255bbe676b9988502b60 (patch) | |
tree | 7241ba9efb24254851a20c88274f225ce2d86e00 /src | |
parent | 8ce6d07d97690e50d4da24441232b053a0eade1e (diff) | |
download | ayatana-indicator-messages-813ad9093f7d7d7a37af255bbe676b9988502b60.tar.gz ayatana-indicator-messages-813ad9093f7d7d7a37af255bbe676b9988502b60.tar.bz2 ayatana-indicator-messages-813ad9093f7d7d7a37af255bbe676b9988502b60.zip |
Add CMake files
Diffstat (limited to 'src')
-rw-r--r-- | src/CMakeLists.txt | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt new file mode 100644 index 0000000..c5cdc56 --- /dev/null +++ b/src/CMakeLists.txt @@ -0,0 +1,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") |