aboutsummaryrefslogtreecommitdiff
path: root/src/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'src/CMakeLists.txt')
-rw-r--r--src/CMakeLists.txt57
1 files changed, 31 insertions, 26 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 924e538..ffa1523 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -7,32 +7,37 @@ SET (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -g ${CXX_WARNING_ARGS} ${GCO
add_definitions (-DTIMEZONE_FILE="/etc/timezone"
-DG_LOG_DOMAIN="Indicator-Datetime")
-add_library (${SERVICE_LIB} STATIC
- actions.cpp
- actions-live.cpp
- alarm-queue-simple.cpp
- appointment.cpp
- clock.cpp
- clock-live.cpp
- date-time.cpp
- engine-eds.cpp
- exporter.cpp
- formatter.cpp
- formatter-desktop.cpp
- locations.cpp
- locations-settings.cpp
- menu.cpp
- planner-month.cpp
- planner-range.cpp
- planner-upcoming.cpp
- settings-live.cpp
- snap.cpp
- timezone-file.cpp
- timezone-geoclue.cpp
- timezones-live.cpp
- utils.c
- wakeup-timer-uha.cpp
- wakeup-timer-mainloop.cpp)
+set (SERVICE_SOURCES
+ actions.cpp
+ actions-live.cpp
+ alarm-queue-simple.cpp
+ appointment.cpp
+ clock.cpp
+ clock-live.cpp
+ date-time.cpp
+ engine-eds.cpp
+ exporter.cpp
+ formatter.cpp
+ formatter-desktop.cpp
+ locations.cpp
+ locations-settings.cpp
+ menu.cpp
+ planner-month.cpp
+ planner-range.cpp
+ planner-upcoming.cpp
+ settings-live.cpp
+ snap.cpp
+ timezone-file.cpp
+ timezone-geoclue.cpp
+ timezones-live.cpp
+ utils.c
+ wakeup-timer-mainloop.cpp)
+
+if (HAVE_UBUNTU_HW_ALARM_H)
+ set (SERVICE_SOURCES ${SERVICE_SOURCES} wakeup-timer-uha.cpp)
+endif ()
+
+add_library (${SERVICE_LIB} STATIC ${SERVICE_SOURCES})
include_directories (${CMAKE_SOURCE_DIR})
link_directories (${SERVICE_DEPS_LIBRARY_DIRS})