Attention! During the first build internet connection is mandatory. There are some nodejs dependencies, which npm is going to unstall during configuration.
Create a build directory and checkout there. For example if you are in project directory, and want to build in subdirectory run
mkdir build
cd build
Run cmake to configure the project, giving the path to project root directory. For example