This merge refactors the whole cmake workflow:
- create cmake modules:
-
checkfortranpreprocessor.cmake
: check for-fpp
or-cpp
and add functioncpp_definitions
-
compileoptions.cmake
: add options for MPI, OpenMP, Lapack and Coverage -
version.cmake
: read version and date from filesversion.txt
andversion_date.txt
-
- shrink
CMakeLists.txt
to only compile the executable frommhm_driver.f90
- add
CMakeLists.txt
insrc/
to compilemhm_lib
from allmo_*.f90
files- refactor compiler flags (don't alter
CMAKE_Fortran_FLAGS
globally) - 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