Visit https://mapserver.org/ for full documentation and installation instructions.
See INSTALL.CMAKE or the document on the MapServer website at https://mapserver.org/installation/unix.html
See README.WIN32 or the document on the MapServer website at https://mapserver.org/installation/win32.html