2024-10-28 02:23:42 +00:00
|
|
|
Include(FetchContent)
|
|
|
|
|
|
|
|
FetchContent_Declare(
|
|
|
|
Catch2
|
|
|
|
GIT_REPOSITORY https://github.com/catchorg/Catch2.git
|
|
|
|
GIT_TAG v3.7.1
|
|
|
|
)
|
|
|
|
|
|
|
|
FetchContent_MakeAvailable(Catch2)
|
2024-10-24 14:48:55 +00:00
|
|
|
|
2024-10-27 13:17:16 +00:00
|
|
|
add_executable(filetape_tests filetape_tests.cpp)
|
2024-10-24 01:25:45 +00:00
|
|
|
target_link_libraries(filetape_tests PRIVATE tapelib)
|
2024-10-24 14:48:55 +00:00
|
|
|
target_link_libraries(filetape_tests PRIVATE Catch2::Catch2WithMain)
|
2024-10-24 01:25:45 +00:00
|
|
|
|
|
|
|
add_test(filetape_tests filetape_tests)
|
2024-10-27 03:18:23 +00:00
|
|
|
|
2024-10-27 13:17:16 +00:00
|
|
|
add_executable(filetape_sort_tests filetape_sort_tests.cpp)
|
2024-10-27 03:18:23 +00:00
|
|
|
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)
|
2024-10-28 02:23:42 +00:00
|
|
|
|
|
|
|
# Compile binary for generating big files for input tapes
|
|
|
|
add_executable(generate_input generate_input.cpp)
|
|
|
|
target_link_libraries(generate_input PRIVATE tapelib)
|