erius
f3aaa26df8
Changed file format for a FileTape - added and example in the class comment Removed prev_line_pos and at_first_line fields from FieldTape Changed Tape data type from int32_t to uint32_t Cleand up includes Implemented FileTape methods Unit tests are in working state
8 lines
381 B
CMake
8 lines
381 B
CMake
find_package(Catch2 3 REQUIRED)
|
|
|
|
add_executable(filetape_tests ${PROJECT_SOURCE_DIR}/tests/filetape_tests.cpp)
|
|
target_link_libraries(filetape_tests PRIVATE tapelib)
|
|
target_link_libraries(filetape_tests PRIVATE Catch2::Catch2WithMain)
|
|
|
|
add_test(filetape_tests filetape_tests)
|
|
add_compile_definitions(FILETAPE_TEST_FILE=\"${PROJECT_SOURCE_DIR}/tests/assets/filetape_test_data.txt\")
|