yadro-task/tests/CMakeLists.txt
erius f8bfc78cad Updated README.md to include additional info about this project
Implemented reading settings from config file
ftsort now outputs total runtime in ms and peak virtual memory usage
Added some error handling
Added documenation to tape_config.h
Changed catch2 cmake dependency to be resolved using FetchContent
Added generate_input test binary to generate big input tape data sets
Header inclusion path changed to _include_ directory, so that tapelib has to be explicitly specified in include directrives
2024-10-28 05:23:42 +03:00

25 lines
795 B
CMake

Include(FetchContent)
FetchContent_Declare(
Catch2
GIT_REPOSITORY https://github.com/catchorg/Catch2.git
GIT_TAG v3.7.1
)
FetchContent_MakeAvailable(Catch2)
add_executable(filetape_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_executable(filetape_sort_tests filetape_sort_tests.cpp)
target_link_libraries(filetape_sort_tests PRIVATE tapelib)
target_link_libraries(filetape_sort_tests PRIVATE Catch2::Catch2WithMain)
add_test(filetape_sort_tests filetape_sort_tests)
# Compile binary for generating big files for input tapes
add_executable(generate_input generate_input.cpp)
target_link_libraries(generate_input PRIVATE tapelib)