Skip to content

Commit 4e8d55e

Browse files
committed
fix ctest
1 parent 4d41f21 commit 4e8d55e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

CMakeLists.txt

+5-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,11 @@ if(BUILD_SYMUSIC_TEST)
9494
target_link_libraries(symusic_test PRIVATE Catch2::Catch2WithMain symusic)
9595
include(CTest)
9696
include(Catch)
97-
catch_discover_tests(symusic_test)
97+
enable_testing()
98+
add_test(
99+
NAME symusic_ctest
100+
COMMAND $<TARGET_FILE:symusic_test> --success
101+
)
98102
endif()
99103

100104

0 commit comments

Comments
 (0)