




set (CMAKE_CXX_STANDARD 17)

find_package(doctest REQUIRED)
include_directories(../include)
add_executable(test_heap test_heap.cpp)
add_executable(test_optvector test_optvector.cpp)
add_executable(test_heap_merge test_heap_merge.cpp)
add_executable(test_midpoints test_midpoints.cpp)
add_executable(test_solve test_solve.cpp)
add_executable(test_states test_states.cpp)
add_executable(test_neighbours test_neighbours.cpp)

target_link_libraries(test_heap_merge PRIVATE doctest::doctest)

foreach(TEST IN ITEMS heap optvector heap_merge midpoints solve states neighbours)
add_test(${TEST} test_${TEST})
endforeach()
