summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorFelix Herrmann <fherrmann@de.adit-jv.com>2020-06-05 15:01:18 +0200
committerSaya Sugiura <39760799+ssugiura@users.noreply.github.com>2020-07-06 10:04:07 +0900
commitde0c990bbfebf0458db5ece18d0d7722cb65ca1d (patch)
tree6501e988291198f13d81d319bff24e817667e3d0 /include
parentff7e65ac36fad5e39efba6fc26cb083a27d400a5 (diff)
downloadDLT-daemon-de0c990bbfebf0458db5ece18d0d7722cb65ca1d.tar.gz
set DLT_NETWORK_TRACE_ENABLE by cmakedefine
Signed-off-by: Felix Herrmann <fherrmann@de.adit-jv.com> Signed-off-by: KHANH LUONG HONG DUY <khanh.luonghongduy@vn.bosch.com>
Diffstat (limited to 'include')
-rw-r--r--include/dlt/CMakeLists.txt7
-rw-r--r--include/dlt/dlt_user.h.in (renamed from include/dlt/dlt_user.h)4
2 files changed, 9 insertions, 2 deletions
diff --git a/include/dlt/CMakeLists.txt b/include/dlt/CMakeLists.txt
index ddf4717..460a410 100644
--- a/include/dlt/CMakeLists.txt
+++ b/include/dlt/CMakeLists.txt
@@ -13,10 +13,13 @@
# For further information see http://www.genivi.org/.
#######
-install(FILES dlt.h dlt_user.h dlt_user_macros.h dlt_client.h dlt_protocol.h
+configure_file(dlt_user.h.in dlt_user.h)
+
+install(FILES dlt.h dlt_user_macros.h dlt_client.h dlt_protocol.h
dlt_common.h dlt_types.h dlt_shm.h dlt_offline_trace.h
dlt_filetransfer.h dlt_common_api.h
- ${PROJECT_BINARY_DIR}/include/dlt/dlt_version.h
+ ${CMAKE_CURRENT_BINARY_DIR}/dlt_version.h
+ ${CMAKE_CURRENT_BINARY_DIR}/dlt_user.h
DESTINATION include/dlt
COMPONENT devel)
diff --git a/include/dlt/dlt_user.h b/include/dlt/dlt_user.h.in
index a3741fa..e4b6569 100644
--- a/include/dlt/dlt_user.h
+++ b/include/dlt/dlt_user.h.in
@@ -74,6 +74,10 @@
\{
*/
+#ifndef DLT_NETWORK_TRACE_ENABLE
+#cmakedefine DLT_NETWORK_TRACE_ENABLE
+#endif
+
#ifdef DLT_NETWORK_TRACE_ENABLE
# include <mqueue.h>
#else