diff options
author | Bui Nguyen Quoc Thanh <49302843+thanhbnq@users.noreply.github.com> | 2022-05-10 10:24:14 +0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-10 10:24:14 +0700 |
commit | 7a48f750137c5bf242d55e170fdfe238dff65e13 (patch) | |
tree | 107b4c5be3e7a69a3f49ce045e49eff87bb69215 /src/console/CMakeLists.txt | |
parent | 0a1c9211af1b0d4f57ff75b4a4832140969722a1 (diff) | |
parent | fbda66c2ed84221466914a71e49319d83ad37d22 (diff) | |
download | DLT-daemon-7a48f750137c5bf242d55e170fdfe238dff65e13.tar.gz |
Merge pull request #363 from alexmohr/make-console-tools-configurable
cmake: Add options to enable/disable each dlt console tool
Diffstat (limited to 'src/console/CMakeLists.txt')
-rw-r--r-- | src/console/CMakeLists.txt | 17 |
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) |