compiling a program

Because cmake provides a solution to a complex problem, it is highly configurable, and usually a highly configurable systems make doing simple things a little more involved, indeed this manifests itself in cmake while trying to build a simple project. Here's the breakdown

With cmake we start by generating the build system (on my machine this will create a makefile)

Next we can build the project

For further useful scripts with cmake check my page on them, if you want to learn how to integrate external libraries with cmake check my page on that here

comments section