然后,在你的CMake主文件CMakeLists.txt中添加: option(PACKAGE_TESTS "Build the tests" ON) if(PACKAGE_TESTS) enable_testing() include(GoogleTest) ...
確定! 回上一頁