Blog

Generated Sources In CMake Builds

Using the right methods, generated sources can be seamlessly incorporated into CMake builds with robust dependencies....

Test Fixtures With CMake/CTest

Support for test fixtures has been added in CMake 3.7.0, allowing setup and cleanup tasks to be defined for groups...

Avoiding Copies And Moves With auto

When C++11 introduced auto, it opened up a whole range of useful techniques and improved the life of C++ developers...

Using ccache with CMake

Getting ccache to work with CMake is not overly complicated, but the way to do it is not always obvious....

Scripting CMake builds

CMake can be used to do more than just configure a build, it can also hide platform differences for other...

Enhanced source file handling with target_sources()

With CMake 3.1, a new command target_sources() was introduced which provides the missing piece among the various target_... commands....

Quoting In CMake

Get some clarity on CMake’s quoting rules, as we highlight common pitfalls and offer guidelines for safer use.

Read More »