简体   繁体   English

用于C ++的Makefile生成器?

[英]Makefile generator for c++?

Do the following build systems: cmake, jam and bjam also generate makefiles like qmake does? 下列构建系统(cmake,jam和bjam)是否也会像qmake一样生成makefile? What utility does MS visual c++ uses to generate make file? MS Visual C ++使用什么工具来生成文件?

CMake does generate makefiles and projects files for several different build systems on different platforms. CMake确实会为不同平台上的多个不同构建系统生成makefile和project文件。 CMake is more generalised than qmake, which is specialised for Qt projects. CMake比专门用于Qt项目的qmake更通用。

jam and bjam are replacements for make, ie different syntax. jam和bjam是make的替代品,即不同的语法。 They do not generate build files. 它们不生成构建文件。

You can generate makefiles (that nmake can use) from Visual Studio by saving them out once you have generated a solution. 您可以从Visual Studio生成makefile(nmake可以使用),方法是在生成解决方案后将其保存。

Visual Studio has its own project file format (*.vcproj), which CMake can generate. Visual Studio具有自己的项目文件格式(* .vcproj),CMake可以生成该文件格式。 CMake can also generate Makefiles. CMake也可以生成Makefile。

I can highly recommend CMake. 我强烈推荐CMake。

You might want to look at premake . 您可能需要看一下premake Not sure if it does what qmake does, but it does generate project / make files for several tools. 不知道它是否执行qmake的功能,但是它确实为多个工具生成了项目/ make文件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM