Please note that manually installing the dependencies is optional and should be automagically performed, provided with an Internet connection, via CMake FetchContent. However, for crosscompiling, they need to be build and installed manually.
mkdir build && cd build
cmake -DCMAKE_INSTALL_PREFIX=</path/to/your/workspace> .. # To build with tests: cmake -DENABLE_TESTS=ON ..
make -j4
make install
ctest -V # To run tests
mkdir buildarm && cd buildarm
export LINUX_ARM_TOOLCHAIN_PATH=</path/to/toolchain> # optional: defaults to /usr/lib/ccache
cmake -DCROSSCOMPILE_ARM=ON -DCMAKE_INSTALL_PREFIX=</path/to/your/workspace/armlinux> .. # your workspace must contain the dependencies, manually built for the host
make -j4
make install