It is not uncommon to encounter codebases that are built with GNU autotools. You might want to use such codebases as a dependency in your Fortran project that you build with CMake. This repository demonstrates how one can integrate rte-rrtmgp, which is built with autotools, into a minimal CMake project.
Call the below to configure, build, and test the project.
./config_build_testTested only on Ubuntu 24.04.2 LTS.