CMake 为 Win32 和 x64 生成 Visual Studio 2008 解决方案 [英] CMake generate Visual Studio 2008 solution for Win32 and x64
本文介绍了CMake 为 Win32 和 x64 生成 Visual Studio 2008 解决方案的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在 Windows XP 下使用 CMake 2.8,想要生成一个 Visual Studio 2008 解决方案文件,其中包含 Win32 和 x64 的发布和调试配置.
I am using CMake 2.8 under Windows XP and want to generate a Visual Studio 2008 solution file which contains Release and Debug configurations for both Win32 and x64.
这可以通过在 CMakeLists.txt
文件中设置 CMake 配置变量来完成吗?
Can this be done by setting a CMake configuration variable in the CMakeLists.txt
file?
推荐答案
CMakeLists 不是您为项目指定生成器(makefile、XCode、Visual Studio)的地方.当用户在您的源上运行 CMake 时指定生成器.
The CMakeLists is not where you specify the generator ( makefile, XCode, Visual Studio ) for a project. The generator is specified when a user runs CMake on your source.
这篇关于CMake 为 Win32 和 x64 生成 Visual Studio 2008 解决方案的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文