Make sure that git submodules are loaded too.
git pull
git submodule sync --recursive
git submodule update --init --recursive
These instructions assume using bash that comes with "git for windows", but is not mandatory to the build itself.
Prepare build directory.
mkdir build ; cd build
Configure the project.
cmake ..
Open VS solution or build everything.
cmake --build . --config RELWITHDEBINFO
These instructions apply to debian-based distributions (eg. ubuntu). It may work on other distributions with little changes.
Install required packages.
sudo apt install xorg-dev libwayland-dev libxkbcommon-dev libpulse-dev libasound2-dev nasm libssl-dev
Prepare build directory.
mkdir build ; cd build
Configure the project.
cmake -DCMAKE_BUILD_TYPE=RELWITHDEBINFO ..
Build.
cmake --build . -- -j8 # 8 is number of processor cores
Run cage-asset-database
. You may find it in build/result/relwithdebinfo.