Add header & footer to blog posts.

This commit is contained in:
2025-02-17 13:06:49 +01:00
parent 6f6725cb7a
commit 04648315a8
164 changed files with 1476 additions and 0 deletions

View File

@ -1,3 +1,8 @@
<?php
require 'config.php';
require '2019-12-11-moving-away-from-cmake.cfg.php';
require 'templates/blog-header.php';
?>
<p>I've used CMake for quite some time, and I must admit that it's a very comprehensible build system. This is, in fact, what originally made it an attractive option to me, since UNIX Makefiles are somewhat cryptic to read and write. However, as of lately, I've been moving away from CMake, especially for smaller projects that don't have many source files or complex dependencies. There are a few reasons for this.</p>
<p>To start off, CMake is bloated. I've always known it was bloated, and I know it's not as bloated as other build systems (I'm looking at you GNU Autotools), but I've always just put up with its bloated nature for the convenience of having a readable build script (the <code>CMakeLists.txt</code> file). However, once you get to learn the syntax of UNIX Makefiles, they're much faster and a lot less tedious, which is often what I'm looking for in my smaller projects.</p>
@ -8,3 +13,7 @@
<p>There are some areas where I can see CMake being useful, particularly when we want to test dependencies. Hand-writing this into a <code>Makefile</code> would be time consuming and annoying, even if we had the help of <code>pkg-config</code>, while in CMake it's done almost automatically. So I can understand and will use CMake for large projects. But for anything that's small enough or simple enough, I'd rather just use a UNIX Makefile.</p>
<?php
require 'templates/blog-footer.php';
?>