如果我按以下方式使用旧的 gtest_add_tests 而不是 gtest_discover_tests ,那么它将起作用: ... GTest::GTest GTest::Main) gtest_discover_tests(tests).
確定! 回上一頁