windows - 如何在 Windows 上使用 CMake 进行非交互式构建?

我想在 Windows 上使用 CMake 设置自动构建。我正在使用 Visual Studio 2005。

更新:这是我正在使用的:

我将 devenv.exe 设置为我的 PATH。然后构建我运行下面的命令。我正在使用 Hudson 构建。

devenv Crackpot.sln/build Debug/project ALL_BUILD

根据 http://blogs.msdn.com/aaronhallberg/archive/2007/06/29/building-from-the-command-line-with-devenv.aspx更喜欢使用“devenv”而不是“denenv.exe”,因为后者可能会产生一个 GUI,从而挂起构建。

最佳答案

我发现这样做最简单的方法是:
% cmake --build "buildDir"
您还可以添加 --target --config 'Debug|Release|...'

https://stackoverflow.com/questions/1459482/

相关文章:

c++ - 如何在 Visual Studio 2008 中优化构建速度

maven-2 - 如何在 Maven 中关闭 jar 压缩

build - 如何为 Windows 构建 google google-breakpad?

maven - 为单个 Jenkins 作业构建多个 Maven 配置文件

c# - 在 Visual Studio 2010 中使用目标构建时收到大量警告

ios - Xcode 方案更改显示名称

build - Phing和 Composer

visual-studio-2010 - Visual Studio 2010 中构建的输出路径

java - 在 Maven 构建期间优化 Java 编译器?

jenkins - "Delete Build in Jenkins after Keep Fore