mirror of
https://github.com/ml-explore/mlx.git
synced 2025-09-01 12:49:44 +08:00
discover doctests in cmake (#703)
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user