Skip to content

Commit

Permalink
Try fixing ci/cd
Browse files Browse the repository at this point in the history
Signed-off-by: Yangbo Long <[email protected]>
  • Loading branch information
YangboLong committed Oct 15, 2024
1 parent eea1733 commit 0c5855a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
7 changes: 6 additions & 1 deletion test/feature/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,9 @@
# limitations under the License.

add_subdirectory(dynamic_types)
add_subdirectory(idl_parser)

if(EXISTS "${PROJECT_SOURCE_DIR}/thirdparty/dds-types-test/IDL")
add_subdirectory(idl_parser)
else()
message(WARNING "Folder thirdparty/dds-types-test/IDL does not exist. Submodule thirdparty/dds-types-test might not have been initialized.")
endif()
14 changes: 5 additions & 9 deletions test/feature/idl_parser/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,8 @@ target_link_libraries(IdlParserTests
)
gtest_discover_tests(IdlParserTests)

if(EXISTS "${PROJECT_SOURCE_DIR}/thirdparty/dds-types-test/IDL")
message(STATUS "Copying IDL directory from ${PROJECT_SOURCE_DIR}/thirdparty/dds-types-test/IDL for idl_parser testing")
add_custom_command(
TARGET IdlParserTests POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy_directory ${PROJECT_SOURCE_DIR}/thirdparty/dds-types-test/IDL $<TARGET_FILE_DIR:IdlParserTests>/IDL
)
else()
message(WARNING "The folder thirdparty/dds-types-test/IDL does not exist. The git submodule might not have been initialized.")
endif()
message(STATUS "Copying IDL directory from ${PROJECT_SOURCE_DIR}/thirdparty/dds-types-test/IDL for idl_parser testing")
add_custom_command(
TARGET IdlParserTests POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy_directory ${PROJECT_SOURCE_DIR}/thirdparty/dds-types-test/IDL $<TARGET_FILE_DIR:IdlParserTests>/IDL
)

0 comments on commit 0c5855a

Please sign in to comment.