yadro-task/tests/CMakeLists.txt

26 lines
795 B
CMake
Raw Normal View History

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)