Skip to content

Commit

Permalink
Compile test libraries in ddspipe_core
Browse files Browse the repository at this point in the history
  • Loading branch information
irenebm committed Jan 22, 2024
1 parent 9253fc5 commit 9952e0c
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions ddspipe_core/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -70,20 +70,7 @@ compile_library(
# Test
###############################################################################
# Compile tests if CMake options requires it

# Determine Fast DDS version
if ("${fastrtps_VERSION}" VERSION_LESS 2.13)
set(DDS_TYPES_VERSION "/v2/")
else()
set(DDS_TYPES_VERSION "/v1/")
endif()

file(GLOB_RECURSE TEST_FILES "${PROJECT_SOURCE_DIR}/test/")
foreach(TEST_FILE ${TEST_FILES})
if(NOT TEST_FILE MATCHES ${DDS_TYPES_VERSION})
compile_test_library(${TEST_FILE})
endif()
endforeach()
compile_test_library("${PROJECT_SOURCE_DIR}/test/")

###############################################################################
# Packaging
Expand Down

0 comments on commit 9952e0c

Please sign in to comment.