C++ 使用CMake构建googletest

C++ 使用CMake构建googletest,c++,cmake,googletest,C++,Cmake,Googletest,我正在尝试使用CMake构建Google测试。 正如谷歌测试自述中提到的, 我已发出以下命令: mkdir mybuild # Create a directory to hold the build output. cd mybuild cmake D:\gtest-1.6.0 # (in the README this was set as:cmake ${GTEST_DIR}, but since on my machine D:\gtest-1.6.0 is wh

我正在尝试使用CMake构建Google测试。 正如谷歌测试自述中提到的, 我已发出以下命令:

  mkdir mybuild       # Create a directory to hold the build output.
  cd mybuild
  cmake D:\gtest-1.6.0 # (in the README this was set as:cmake ${GTEST_DIR}, but since on my machine D:\gtest-1.6.0 is where I have downloaded gtest, I have used that in command prompt.
下面是我得到的错误:

有什么帮助吗?任何帮助都将不胜感激,因为我无法继续前进。。。。。。谢谢
我在我的机器上安装了VisualStudio 10。

< P>如果你使用VisualC++编译器,你必须从VisualC++命令提示符中启动它。否则,cmake将找不到您的编译器。

您好,是的,我已安装Visual Studio 10。我还下载了CMAKE2.6。什么是“dev命令提示符”?我编辑了我的答案。您可以在VisualStudio应用程序文件夹中找到它。请参阅infoHi,谢谢,但即使使用Visual Studio命令提示符(2010),我也会遇到同样的问题:((请发布D:\gtest-1.6.0\CMakeLists.txt包含的内容。嗨,请看这里:-它太大了,无法复制并粘贴到这里。)。。