This repo contains CMake modules that identify and allow to use the freepascal compiler for CMake. It also contains a test project to demonstrate how to use CMake.
Credits for the CMake modules go to Vittorio Giovara
See also the hedgewars (https://github.com/hedgewars/hw) project