

If you don't know what to install, just follow this Cygwin tutorial (Part 1 and 2).ĬMake is already included inside the packages you downloaded if you followed this Cygwin tutorial.
#CMAKE TUTORIAL CMAKELISTS TXT INSTALL#
We will install it in the following directory: Our main CLI for this tutorial will be Cygwin:

That's why CMake has been created, it works on every operating system (the first letter " C" standing for Cross-platform).įurthermore, with CMake it will be possible to generate Visual Studio project files, like. To be honest the main reason is because in the Windows world there is no native GNU tools available. So why creating a new tool as the GNU one works well? Thus it reduces our mechanism to only 2 steps.

In order to have a nice terminal, I'll use the Cygwin CLI during this CMake tutorial. Indeed, CMake is a complex but interesting tool that can generate native Makefiles for the compiler of your choice.īut it's not all, CMake can also create some useful project files, for a lot of IDE (such as Visual Studio or Eclipse for example) and almost every OS (like GNU/Linux, Windows, Mac, etc.).
#CMAKE TUTORIAL CMAKELISTS TXT HOW TO#
In this tutorial we are going to see how to generate a Makefile with CMake on Windows. There are many ways to create a Makefile.
