mirror of
https://github.com/ml-explore/mlx.git
synced 2025-06-25 01:41:17 +08:00
discover doctests in cmake (#703)
This commit is contained in:
parent
1a4f4c5ea6
commit
e1bdf6a8d9
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user