discover doctests in cmake (#703)

This commit is contained in:
Diogo 2024-02-19 10:03:56 -05:00 committed by GitHub
parent 1a4f4c5ea6
commit e1bdf6a8d9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -14,6 +14,8 @@ if (MLX_BUILD_METAL)
)
endif()
include(${doctest_SOURCE_DIR}/scripts/cmake/doctest.cmake)
target_sources(tests PRIVATE
allocator_tests.cpp
array_tests.cpp
@ -37,4 +39,5 @@ target_sources(tests PRIVATE
)
target_link_libraries(tests PRIVATE mlx doctest)
doctest_discover_tests(tests)
add_test(NAME tests COMMAND tests)