summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlexander Mohr <alexander.m.mohr@daimler.com>2022-01-20 16:58:31 +0100
committerAlexander Mohr <alexander.m.mohr@daimler.com>2022-01-25 11:34:01 +0100
commitfbda66c2ed84221466914a71e49319d83ad37d22 (patch)
tree97277d48cff4d0076ccffc5cd75a9a08b7ce6f33 /src
parent0138c00811c86eab4ff6bff3c6528163885ade19 (diff)
downloadDLT-daemon-fbda66c2ed84221466914a71e49319d83ad37d22.tar.gz
cmake: Add options to enable/disable each dlt console tool
This commits adds several cmake options to enable or disable each console tool separately. Signed-off-by: Alexander Mohr <alexander.m.mohr@daimler.com>
Diffstat (limited to 'src')
-rw-r--r--src/console/CMakeLists.txt17
1 files changed, 15 insertions, 2 deletions
diff --git a/src/console/CMakeLists.txt b/src/console/CMakeLists.txt
index 521e464..b609405 100644
--- a/src/console/CMakeLists.txt
+++ b/src/console/CMakeLists.txt
@@ -17,11 +17,24 @@ set(dlt_control_common_SRCS ${CMAKE_CURRENT_SOURCE_DIR}/dlt-control-common.c)
add_library(dlt_control_common_lib STATIC ${dlt_control_common_SRCS})
target_link_libraries(dlt_control_common_lib dlt ${DLT_JSON_LIBRARY})
-set(TARGET_LIST dlt-convert dlt-receive)
+set(TARGET_LIST "")
+
+if (WITH_DLT_CONSOLE_RECEIVE)
+ list(APPEND TARGET_LIST dlt-receive)
+endif()
+
+if (WITH_DLT_CONSOLE_CONVERT)
+ list(APPEND TARGET_LIST dlt-convert)
+endif()
if(NOT WITH_DLT_CONSOLE_WO_CTRL)
add_subdirectory(logstorage)
- list(APPEND TARGET_LIST dlt-control dlt-passive-node-ctrl)
+ if (WITH_DLT_CONSOLE_CONTROL)
+ list(APPEND TARGET_LIST dlt-control)
+ endif()
+ if (WITH_DLT_CONSOLE_PASSIVE_NODE_CTRL)
+ list(APPEND TARGET_LIST dlt-passive-node-ctrl)
+ endif()
endif()
if(NOT WITH_DLT_CONSOLE_WO_SBTM)