How to use nmake for an C++ project

Sim picture Sim · Oct 26, 2011 · Viewed 9.3k times · Source

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

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.

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.

Answer

arne picture arne · Aug 8, 2013

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.