在 CMakeLists.txt 中启用测试功能,并清理测试目录的多余代码

This commit is contained in:
2025-12-05 21:00:05 +08:00
parent 6731384638
commit 2e8537eb7f
2 changed files with 2 additions and 3 deletions

View File

@@ -9,6 +9,4 @@ foreach (TEST_SRC ${TEST_SOURCES})
target_link_libraries(${TEST_NAME} PUBLIC ${TEST_LIBS})
add_test(NAME ${TEST_NAME} COMMAND ${TEST_NAME})
endforeach ()
enable_testing()
endforeach ()