25 lines
746 B
CMake
25 lines
746 B
CMake
add_executable(tests_runner main_test.cpp)
|
|
target_link_libraries(tests_runner Catch2::Catch2WithMain maze)
|
|
|
|
add_executable(tests_Cell Cell.cpp)
|
|
target_link_libraries(tests_Cell Catch2::Catch2WithMain maze)
|
|
|
|
add_executable(tests_Grid Grid.cpp)
|
|
target_link_libraries(tests_Grid Catch2::Catch2WithMain maze)
|
|
|
|
add_executable(tests_Distances Distances.cpp)
|
|
target_link_libraries(tests_Distances Catch2::Catch2WithMain maze)
|
|
|
|
add_executable(tests_Mask Mask.cpp)
|
|
target_link_libraries(tests_Mask Catch2::Catch2WithMain maze)
|
|
|
|
file(COPY data DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
|
|
|
|
include(CTest)
|
|
include(Catch)
|
|
catch_discover_tests(tests_runner)
|
|
catch_discover_tests(tests_Cell)
|
|
catch_discover_tests(tests_Grid)
|
|
catch_discover_tests(tests_Distances)
|
|
|