gfortran config
May 11, 2025 ยท View on GitHub
The script to automatically build and run Fortran code in gfortran environment
Install
The user should assign the installed location of gfortran and cmake: open build_run.bat and fill in the following variables.
| Name | Description | Example |
|---|---|---|
mingw_bin_dir | The path of the folder which contains gfortran.exe | ...\mingw64\bin |
cmake_bin_dir | The path of the folder which contains cmake.exe | ...\cmake-3.31.0-rc3-windows-x86_64\bin |
CMake is used to automatically analyze dependencies.
Usage
Build & run
To build and run Fortran program, run the following command in Windows command prompt (CMD).
build_run.bat $folder
Arguments:
| Name | Description | Required? |
|---|---|---|
$folder | The root directory of the Fortran program to build and run. | Optional default: the current directory |