有人能解释一下如何正确安装Cmake和GoogleTest命令吗?
gtest_discover_tests变得可用了吗?我安装了
cmake-3.23.0-rc3和
googletest-release-1.11.0但我还是不能编译那个项目
https://github.com/D-os/libbinder由于融合误差
CMake Error at tests/CMakeLists.txt:15 (gtest_discover_tests):
Unknown CMake command "gtest_discover_tests".我正在使用Slackware 14.2 x64
发布于 2022-03-15 05:28:32
该函数是在GoogleTest脚本文件(模块)中定义的,因此您需要将其包括如下:include(GoogleTest)
然后你可以使用这个函数。
https://stackoverflow.com/questions/71475845
复制相似问题