Skip to content

Commit

Permalink
Make: Detect tests (#518)
Browse files Browse the repository at this point in the history
Tests were priorly not detected by "ctest".
See: https://stackoverflow.com/questions/30250494/ctest-not-detecting-tests.
  • Loading branch information
Spixmaster authored Nov 3, 2024
1 parent 6a0e2ee commit 7d39ff5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,9 @@ function (setup_target TARGET_NAME)

endfunction ()

# Must be called before "add_subdirectory()". See https://stackoverflow.com/questions/30250494/ctest-not-detecting-tests.
enable_testing()

if (${USEARCH_BUILD_TEST_CPP} OR ${USEARCH_BUILD_BENCH_CPP})
add_subdirectory(cpp)
endif ()
Expand Down

0 comments on commit 7d39ff5

Please sign in to comment.