summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJiri Popek <jiri.popek@gmail.com>2019-02-02 23:03:37 +0100
committerChristoph Lipka <clipka@users.noreply.github.com>2019-02-02 23:03:37 +0100
commit892325dbc0983a18d5d16a10faefc0e982bf9660 (patch)
treeafa2fd901f9d78e1f22410b6c3f47cdf3d3b0a12 /tests
parent034ad4fcab798fb746823cd75d1e55535327a0c5 (diff)
downloadDLT-daemon-892325dbc0983a18d5d16a10faefc0e982bf9660.tar.gz
Travis CI: build with systemd enabled (#97)
* Travis CI: build with systemd enabled * fix the 'sd_booted' linker issue
Diffstat (limited to 'tests')
-rw-r--r--tests/CMakeLists.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
index 50cca4f..56a21b7 100644
--- a/tests/CMakeLists.txt
+++ b/tests/CMakeLists.txt
@@ -20,6 +20,10 @@ endif()
set(DLT_LIBRARIES ${LIBRARIES} dlt)
set(DLT_DAEMON_LIBRARIES ${LIBRARIES} dlt_daemon)
+if(WITH_SYSTEMD OR WITH_SYSTEMD_WATCHDOG)
+ set(DLT_DAEMON_LIBRARIES ${DLT_DAEMON_LIBRARIES} systemd)
+endif()
+
add_executable(gtest_dlt_common gtest_dlt_common.cpp)
add_executable(gtest_dlt_user gtest_dlt_user.cpp)
add_executable(gtest_dlt_daemon_common gtest_dlt_daemon_common.cpp ../src/daemon/dlt_daemon_common.c)