diff options
author | Vo Trung Chi <chi.votrung@vn.bosch.com> | 2019-08-01 07:38:42 +0700 |
---|---|---|
committer | Saya Sugiura <39760799+ssugiura@users.noreply.github.com> | 2019-08-01 09:38:42 +0900 |
commit | 3f7dc3fd80e7fe548f89b96ab4228135dca688db (patch) | |
tree | efa1473fbd73b559fc6340c35479d060d2349553 /tests/CMakeLists.txt | |
parent | 8673795b845e461e42920e44cdf70a5361457e8b (diff) | |
download | DLT-daemon-3f7dc3fd80e7fe548f89b96ab4228135dca688db.tar.gz |
using POSIX shared memory APIs (#90) (#151)
Replace all Linux specific shared memory APIs with POSIX alternatives.
Signed-off-by: Vo Trung Chi <Chi.VoTrung@vn.bosch.com>
Diffstat (limited to 'tests/CMakeLists.txt')
-rw-r--r-- | tests/CMakeLists.txt | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 609a7a0..db9160c 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -28,6 +28,11 @@ add_executable(dlt-test-preregister-context dlt-test-preregister-context.c) add_executable(gtest_dlt_daemon_gateway gtest_dlt_daemon_gateway.cpp ${systemd_SRCS}) add_executable(gtest_dlt_daemon_event_handler gtest_dlt_daemon_event_handler.cpp ${systemd_SRCS}) add_executable(gtest_dlt_daemon_offline_log gtest_dlt_daemon_offline_log.cpp ${systemd_SRCS}) + +if(WITH_DLT_SHM_ENABLE) + add_executable(gtest_dlt_shm gtest_dlt_shm.cpp) +endif(WITH_DLT_SHM_ENABLE) + target_link_libraries(gtest_dlt_common ${DLT_LIBRARIES}) target_link_libraries(gtest_dlt_user ${DLT_LIBRARIES}) target_link_libraries(gtest_dlt_daemon_common ${DLT_LIBRARIES}) @@ -38,6 +43,10 @@ target_link_libraries(gtest_dlt_daemon_gateway ${DLT_DAEMON_LIBRARIES}) target_link_libraries(gtest_dlt_daemon_event_handler ${DLT_DAEMON_LIBRARIES}) target_link_libraries(gtest_dlt_daemon_offline_log ${DLT_DAEMON_LIBRARIES}) +if(WITH_DLT_SHM_ENABLE) + target_link_libraries(gtest_dlt_shm ${DLT_DAEMON_LIBRARIES}) +endif(WITH_DLT_SHM_ENABLE) + if(WITH_DLT_CXX11_EXT) add_executable(dlt-test-cpp-extension dlt-test-cpp-extension.cpp) target_link_libraries(dlt-test-cpp-extension ${DLT_LIBRARIES}) |