16 lines
633 B
CMake
16 lines
633 B
CMake
add_executable(test_format_roundtrip roundtrip.cpp)
|
|
target_link_libraries(test_format_roundtrip PRIVATE voidlibc_format)
|
|
target_include_directories(test_format_roundtrip
|
|
PRIVATE
|
|
${CMAKE_SOURCE_DIR}
|
|
${CMAKE_SOURCE_DIR}/voidlink
|
|
)
|
|
# Pick up writer/reader sources directly — these are small and tests are
|
|
# the only consumer outside the voidlink binary.
|
|
target_sources(test_format_roundtrip PRIVATE
|
|
${CMAKE_SOURCE_DIR}/voidlink/writer.cpp
|
|
${CMAKE_SOURCE_DIR}/voidlink/reader.cpp
|
|
)
|
|
add_test(NAME format_roundtrip COMMAND test_format_roundtrip)
|
|
set_tests_properties(format_roundtrip PROPERTIES LABELS "format;unit")
|