Introduction

The goal of this tutorial is not to go indepth in the CMake syntax, but mainly its use in setting up a decent working folder structure with the mainstream structures and calls. During my learning trip of CMake, I've been reading up on the CMake website, making use of their tutorial and documentation and then scavenging all possible Stack Exchange articles and other tutorials to get to a decent understanding of what seems right in my mind.

If there are better approaches (proven by the industry?), you can always feed it back to me. I'm still a learner in this process.

Historical

At first I wanted to set up CMake as one single file in the root of the repository. Very fast I came to the conclusion that it was messy and not logical, let alone not intuitive. Keeping things simple have always been my bread and butter, but in this case, "keeping things simple" is actually using more files with a simplified syntax.

Approach

Like I mentioned, there are a lot of introductory tutorials on hello world scenario's and I strongly suggest you follow them first. I'm trying to teach a pragmatic approach into a real-life or similar scenario. So if you are setting up a new project and you have no clue on how to do this, this tutorial might be able to help you.

results matching ""

    No results matching ""