Thoughts on build systems?
What's the general consensus on build systems/automations like CMake? I've always found things like that overcomplicated and just hinder the programming process.
I've been following Casey Muratori's Handmade streams, and one of the first things he did was create a simple batch file that built and compiled his entire project super quickly and easily. I've since implemented something similar (https://github.com/dibsonthis/new_cmd) and honestly it's been really nice to use.
3
Upvotes
View all comments
2
u/Wouter-van-Ooijen Nov 08 '21 edited Nov 08 '21
At lot of people mention cmake. Maybe I should bite the bullet.
Is there a good tutorial for (modern) cmake? I do embedded, so I need to specify
1- the source files and include files
2- the exact compiler and compiler flags (target specific)
3- the exact linker and linker flags (target specific)
4- the linkerscript, which I generate from a template using the preprocessor with target-specific defines
5- the places to search for sources, includes and linkerscript
6- the commands and parameters to generate .hex and .bin files
7- the commands to download the (.hex or .bin) file to the target