The CMake scripts are copied from the ones I created on the SWIG Fortran fork.
Example code and timing used in the SWIG Fortran paper