set(TESTS_SRC
  main.cpp
  test_config.cpp
  test_edges.cpp
  test_node_sets.cpp
  test_nodes.cpp
  test_report_reader.cpp
  test_selection.cpp
)

add_executable(unittests ${TESTS_SRC})
target_link_libraries(unittests
    PRIVATE
    sonata_shared
    HighFive
    Catch2::Catch2
    nlohmann_json::nlohmann_json
)
add_test(NAME unittests COMMAND unittests WORKING_DIRECTORY ${CMAKE_CURRENT_LIST_DIR})

catch_discover_tests(unittests
    WORKING_DIRECTORY ${CMAKE_CURRENT_LIST_DIR}
    )
