Skip to content

Commit

Permalink
FASTDDS_SUBDIRECTORY -> DDS_TYPES_VERSION
Browse files Browse the repository at this point in the history
Signed-off-by: Irene Bandera <irenebandera@eprosima.com>
  • Loading branch information
irenebm committed Jan 12, 2024
1 parent 9e6d5aa commit 95ba5ac
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions ddspipe_core/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -73,14 +73,14 @@ compile_library(

# Determine Fast DDS version
if ("${fastrtps_VERSION}" VERSION_LESS 2.13)
set(FASTDDS_SUBDIRECTORY "/v2/")
set(DDS_TYPES_VERSION "/v2/")
else()
set(FASTDDS_SUBDIRECTORY "/v1/")
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 ${FASTDDS_SUBDIRECTORY})
if(NOT TEST_FILE MATCHES ${DDS_TYPES_VERSION})
compile_test_tool(${TEST_FILE})
endif()
endforeach()
Expand Down
12 changes: 6 additions & 6 deletions ddspipe_core/test/unittest/types/dynamic_types/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ set(TEST_NAME dtypes_idl_tests)

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

# Add to test sources every FastDDSGen file generated
file(GLOB DATATYPE_SOURCES_CXX "types/${FASTDDS_SUBDIRECTORY}/**/*.cxx")
file(GLOB DATATYPE_SOURCES_CXX "types/${DDS_TYPES_VERSION}/**/*.cxx")
set(TEST_SOURCES
dtypes_idl_tests.cpp
${PROJECT_SOURCE_DIR}/src/cpp/types/dynamic_types/schema_idl.cpp
Expand All @@ -49,7 +49,7 @@ file(
RESULT_SOURCES_IDL
RELATIVE
"${CMAKE_CURRENT_SOURCE_DIR}"
"types/${FASTDDS_SUBDIRECTORY}/idls/*.idl")
"types/${DDS_TYPES_VERSION}/idls/*.idl")

set(TEST_NEEDED_SOURCES
${RESULT_SOURCES_IDL}
Expand All @@ -70,7 +70,7 @@ add_unittest_executable(
set(TEST_NAME dtypes_msg_tests)

# Add to test sources every FastDDSGen file generated
file(GLOB DATATYPE_SOURCES_CXX "types/${FASTDDS_SUBDIRECTORY}/**/*.cxx")
file(GLOB DATATYPE_SOURCES_CXX "types/${DDS_TYPES_VERSION}/**/*.cxx")
set(TEST_SOURCES
dtypes_msg_tests.cpp
${PROJECT_SOURCE_DIR}/src/cpp/types/dynamic_types/schema_msg.cpp
Expand All @@ -93,7 +93,7 @@ file(
RESULT_SOURCES_MSG
RELATIVE
"${CMAKE_CURRENT_SOURCE_DIR}"
"types/${FASTDDS_SUBDIRECTORY}/msgs/*.msg")
"types/${DDS_TYPES_VERSION}/msgs/*.msg")

set(TEST_NEEDED_SOURCES
${RESULT_SOURCES_MSG}
Expand Down

0 comments on commit 95ba5ac

Please sign in to comment.