Skip to content

Commit

Permalink
Add xcdr Test to CMake
Browse files Browse the repository at this point in the history
  • Loading branch information
iguessthislldo committed Nov 30, 2023
1 parent 7fcb5c8 commit 809b147
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions tests/DCPS/Compiler/xcdr/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
cmake_minimum_required(VERSION 3.8...3.27)
project(opendds_compiler_xcdr CXX)
enable_testing()

find_package(OpenDDS REQUIRED)
include(opendds_testing)

add_executable(${PROJECT_NAME} "xcdr.cpp")
set_target_properties(${PROJECT_NAME} PROPERTIES OUTPUT_NAME xcdr)
opendds_target_sources(${PROJECT_NAME}
PUBLIC
xcdrbasetypes.idl
appendable_mixed.idl
mutable_types.idl
mutable_types2.idl
keyonly.idl
OPENDDS_IDL_OPTIONS --no-default-nested -Gxtypes-complete
)
target_link_libraries(${PROJECT_NAME} PUBLIC OpenDDS::Dcps gtest)

configure_file(run_test.pl . COPYONLY)
opendds_add_test(NAME static)
opendds_add_test(NAME dynamic ARGS --dynamic)

0 comments on commit 809b147

Please sign in to comment.