To build CoastalME from source you previously need to download the latest version of the source code and have GDAL installed as indicated here.
Compile the latest source code similarly as the GDAL.test:
wget https:\\repository\icm-x.xx.tar.gz tar xzvf icm-x.xx.tar.gz
Create a new project from existing files
Add GDAL dependencies and DLLs
Copy input files into Debug folder
Make a dir named out where the results will be created
From DOS command prompt call executable