aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2025-04-01 18:58:38 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2025-04-01 18:58:38 +0200
commite46cd1329492e9e4268a7b8661155eda178b689f (patch)
treec978bd4280995318dfc39658a880f7b31e961b4f /src
parent7f59c03c4f77c62f76f020e30319d19016b915c8 (diff)
downloadayatana-indicator-datetime-e46cd1329492e9e4268a7b8661155eda178b689f.tar.gz
ayatana-indicator-datetime-e46cd1329492e9e4268a7b8661155eda178b689f.tar.bz2
ayatana-indicator-datetime-e46cd1329492e9e4268a7b8661155eda178b689f.zip
CMake: Switch to building datetime indicator in two variants with different service executable names and systemd service files.
Diffstat (limited to 'src')
-rw-r--r--src/CMakeLists.txt12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index e13a4f1..2bc4452 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -1,7 +1,13 @@
set (SERVICE_LIB "indicatordatetimeservice")
-set (SERVICE_EXEC "ayatana-indicator-datetime-service")
-add_definitions (-DG_LOG_DOMAIN="ayatana-indicator-datetime")
+if (ENABLE_LOMIRI_FEATURES)
+ set (INDICATOR_VARIANT_NAME "lomiri-indicator-datetime")
+else ()
+ set (INDICATOR_VARIANT_NAME "${CMAKE_PROJECT_NAME}")
+endif ()
+
+add_definitions (-DG_LOG_DOMAIN="${INDICATOR_VARIANT_NAME}")
+set (SERVICE_EXEC "${INDICATOR_VARIANT_NAME}-service")
# handwritten sources
set (SERVICE_C_SOURCES
@@ -82,4 +88,4 @@ endif ()
add_executable (${SERVICE_EXEC} main.cpp)
target_link_libraries (${SERVICE_EXEC} ${SERVICE_LIB} ${SERVICE_DEPS_LIBRARIES})
-install (TARGETS ${SERVICE_EXEC} RUNTIME DESTINATION "${CMAKE_INSTALL_FULL_LIBEXECDIR}/${CMAKE_PROJECT_NAME}")
+install (TARGETS ${SERVICE_EXEC} RUNTIME DESTINATION "${CMAKE_INSTALL_FULL_LIBEXECDIR}/${INDICATOR_VARIANT_NAME}")