Compiling on Windows ==================== This section describes how to configure CMake by using the command line. For information about configuring CMake with the CMake-GUI, see the file "Readme-CMake-GUI.docx." 0) Be sure that you have installed all prerequisites listed at https://oss.deltares.nl/web/delft3d/source-code#prerequisites, including CMake version 3.17. Make sure that CMake was added to the system variables Path. (should be working automatically) 1) Create a target directory where the generated files should go to. It is recommended to create a separate directory for each of the different configurations. 2) Open a command line screen and execute the following statement: cmake -G "" -A x64 -S "" -B "" -D CONFIGURATION_TYPE= where: : The generator to generate the solution for (e.g. "Visual Studio 15 2017", "Unix Makefiles") : The location to the main CMakeLists.txt location. This file is located in "...\src\CMake" : The target directory define in step 1 and where the generated files should go : The configuration to generate the .sln for. Valid values are "dflowfm_open" (default), "tests" or "dimr_open" 3) Open the generated .sln in the in Visual Studio 4) Select the "solution configuration": "Release" 5) Select the "solution platform" : "x64" 6) B will compile the full solution Compiling on Linux ==================== 1) Load the necessary modules and export MPI wrappers module load gcc/7.3.0 module load intel/18.0.3 module load automake/1.14.1_gcc7.3.0 module load autoconf/2.69_gcc7.3.0 module load libtool/2.4.6_gcc7.3.0 module load mpich/3.3.2_intel18.0.3 module load petsc/3.13.3_intel18.0.3_mpich3.3.2 module load metis/5.1.0_intel18.0.3 module load netcdf/v4.7.4_v4.5.3_intel18.0.3 module load proj/7.1.0_gcc7.3.0 module load shapelib/1.5.0_intel18.0.3 module load gdal/3.1.2_gcc7.3.0 export FC=mpif90 export CXX=mpicxx export CC=mpicc 2) Configure the cmake project. There are two configurations available: TESTS and DFLOWFM_OPEN. The first is for testing purposes, the second produces the dflowfm-cli executable cmake ~/code/branches/cmake/src/cmake -G"Unix Makefiles" -DCONFIGURATION_TYPE=DFLOWFM_OPEN -DCMAKE_FORTRAN_COMPILER=mpif90 -DCMAKE_CXX_COMPILER=mpicxx -DCMAKE_CC_COMPILER=mpicc -DCMAKE_BUILD_TYPE=Debug 3) After the Unix makefile are generated in the current directory, type make for building all necessary targets make More information on CMake ==================== An example CMakeLists file can be found in "..\src\CMake\templates\example_CMakeLists.txt"