c++ - cmake,scons,autotools选择
PHPz
PHPz 2017-04-17 11:31:57
0
3
661

选择强迫症...不知道怎么选。
目前接手的项目中使用的是autotools...但感觉autotools学习曲线十分陡峭...
cmake感觉不错的样子,还有个c++ package manager基于cmake
scons感觉也很好的样子...但看到这里说scons很糟糕,和新的编译器不兼容...
想问一下它们之间比较的优劣如何..
scons wiki上有一个比较,但是糙快猛的痕迹很明显。。

=====update
刚发现autotools的一个坑。项目中不能有core, *.core之类的文件夹,因为autoreconf生成的configure中包含rm -f core *.core ...之类的语句,导致配置失败。

PHPz
PHPz

学习是最好的投资!

reply all(3)
伊谢尔伦

If you are writing C++, then I suggest you use CMake, which is currently the only build system that can correctly support C++11. Some well-known C++ projects such as LLVM are already using CMake, and Boost is also turning to CMake.
With CPack, CMake can directly generate installation packages for various OSs such as deb, rpm, NSIS, etc.

If you really want to be serious, there is qmake, but if you don’t write Qt programs, forget it

Peter_Zhu

Compared with other tools, CMake has two huge advantages. One is versatility, cross-platform and cross-compiler. The other is that it has a graphical interface, which makes it easy to modify parameters. Reference CMake http://zh.wikipedia.org/wiki/CMake.

巴扎黑

You can try xmake. Personally, I think it is easier to use than cmake. It uses lua syntax to describe the project. It is easy to use and can be built across platforms

I use this for all my projects. .

https://github.com/waruqi/xmake

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template