Refactor: Enable pFUnit-tests and refactor cmake workflow
This merge refactors the whole cmake workflow:
- create cmake modules:
-
checkfortranpreprocessor.cmake: check for-fppor-cppand add functioncpp_definitions -
compileoptions.cmake: add options for MPI, OpenMP, Lapack and Coverage -
version.cmake: read version and date from filesversion.txtandversion_date.txt
-
- shrink
CMakeLists.txtto only compile the executable frommhm_driver.f90 - add
CMakeLists.txtinsrc/to compilemhm_libfrom allmo_*.f90files- refactor compiler flags (don't alter
CMAKE_Fortran_FLAGSglobally) - safer setting of included and linked paths
- refactor compiler flags (don't alter
- add
tests/folder insrc/containing pfUnit tests - added message about usage of MPI and OpenMP in
mhm_driver.f90 - Refactored Cmake options to have correct type
Edited by Sebastian Müller