From e0c47ec1fd95abbc5f8f32f9d9968dfbd02b0999 Mon Sep 17 00:00:00 2001 From: Martin Koch Date: Mon, 13 Jan 2020 11:50:32 +0100 Subject: AM-Test: exclude AmSocketHandlerTest from build if WITH_DLT is not enabled Signed-off-by: Martin Koch --- AudioManagerUtilities/test/CMakeLists.txt | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/AudioManagerUtilities/test/CMakeLists.txt b/AudioManagerUtilities/test/CMakeLists.txt index 414e199..74e56f9 100644 --- a/AudioManagerUtilities/test/CMakeLists.txt +++ b/AudioManagerUtilities/test/CMakeLists.txt @@ -1,2 +1,8 @@ -add_subdirectory (AmSocketHandlerTest) +if (WITH_DLT) + # this test works only if Utilities are built with DLT support - skip otherwise + add_subdirectory (AmSocketHandlerTest) +else (WITH_DLT) + message ( WARNING "CAmSocketHandlerTest requires DLT support - skipping ...") +endif (WITH_DLT) + add_subdirectory (AmSerializerTest) -- cgit v1.2.1