cmake

How to add external libraries into your CFD solver using CMake

After having reviewed how to compile your own library with CMake in the previous article, including what steps to take so that other people can consume your library in their project, we reverse the role in this article and look at how we can use someone else’s library in our project. In the process, we …

How to add external libraries into your CFD solver using CMake Read More »

How to compile, install, and use custom libraries with CMake

In this article, we will look at how we can use CMake to compile and install a library we have developed, be it a static, dynamic, or header-only library. We look at all the steps we need to take to make the installation successful, which will contain steps to automatically generate files that other projects …

How to compile, install, and use custom libraries with CMake Read More »

Advanced CMake features to power up your CFD development

In this article, we look at some more advanced concepts in CMake that will help you automate your build process from start to end. We first look at programming with variables, conditional statements, and loops, and then look at functions and macros, configure files, generator expressions, and finally policies. If you master these concepts, you …

Advanced CMake features to power up your CFD development Read More »

How to integrate external CFD libraries in your code

This article will explore the most common build tools you come across when building CFD libraries from source. These include Make, Ninja build, MSBuild, CMake, Meson, and Autotools. While some build systems are preferred over others, you may encounter any of these in the wild. We’ll adapt our previously developed linear algebra library and create …

How to integrate external CFD libraries in your code Read More »