如何将nmake用于C ++项目

时间:2023-01-17 13:15:42

How do I set up a project using nmake like with GNU Make?

如何使用与GNU Make一样的nmake设置项目?

I got a certain folder structure I want to keep and would love if I could tell cl to put the obj files in a certain build folder.

我有一个我想要保留的特定文件夹结构,如果我能告诉cl将obj文件放在某个构建文件夹中,我会很高兴。

I did not find any tutorial which actually describes a real project setup. I am in desperate need of a short realistic example or a link to a tutorial actually dealing with my problem as this or this are not even close to do any real explanation.

我没有找到任何实际描述真实项目设置的教程。我迫切需要一个简短的现实例子或实际处理我的问题的教程的链接,因为这或者甚至不接近做任何真正的解释。

1 个解决方案

#1


0  

If you're willing to try something new, I'd suggest using cmake to generate the NMake Makefiles for you. This has the additional advantage that you can generate Visual Studio project files, Unix Makefiles etc from the same build system generator.

如果您愿意尝试新的东西,我建议您使用cmake为您生成NMake Makefiles。这具有额外的优势,您可以从同一构建系统生成器生成Visual Studio项目文件,Unix Makefile等。

#1


0  

If you're willing to try something new, I'd suggest using cmake to generate the NMake Makefiles for you. This has the additional advantage that you can generate Visual Studio project files, Unix Makefiles etc from the same build system generator.

如果您愿意尝试新的东西,我建议您使用cmake为您生成NMake Makefiles。这具有额外的优势,您可以从同一构建系统生成器生成Visual Studio项目文件,Unix Makefile等。