Skip to content

Commit 27b27ce

Browse files
committed
add tests for xobject to build script
1 parent e43ae29 commit 27b27ce

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

test/CMakeLists.txt

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,18 @@ add_test(NAME xnode_overflow_test COMMAND xnode_overflow_test)
2929
add_executable(xarray_test xarray_test.cpp)
3030
target_link_libraries(xarray_test PRIVATE xnode)
3131

32-
# Add xvector test to CTest
32+
# Add xarray test to CTest
3333
add_test(NAME xarray_test COMMAND xarray_test)
3434

35+
# Add xobject tests
36+
add_executable(xobject_test xobject_test.cpp)
37+
target_link_libraries(xobject_test PRIVATE xnode)
38+
39+
# Add xobject test to CTest
40+
add_test(NAME xobject_test COMMAND xobject_test)
41+
3542
# Install the test executable if needed (optional)
36-
install(TARGETS xnode_test xnode_convert_test xnode_type_test xnode_overflow_test xarray_test
43+
install(TARGETS xnode_test xnode_convert_test xnode_type_test xnode_overflow_test xarray_test xobject_test
3744
RUNTIME DESTINATION bin
3845
OPTIONAL
3946
)

0 commit comments

Comments
 (0)