I created an example how to integrate the Fortran standard library (stdlib) in CMake projects at
This example should jump start you from zero to production with minimal effort, you can even use it directly as template to create a new repository on GitHub including a full CI setup.
The aim was to have a robust and readable CMake style, which generally stays out of the way and allows customization with minimal exposure to CMake (as much as this is possible with CMake).
Let me know what you think, feedback to improve stdlib’s usability and/or the CMake example is very welcome.