Precompiled headers in CMake? Easy peasy, lemon squeezy

Precompiled headers are a powerful way to reduce compilation time in C++ projects. The best part is that modern CMake supports them out of the box. In this article, I’ll show you how to set up your CMake project to take advantage of precompiled headers.