First, at the root of the project, run to initialize the build:
cmake -S . -B build
Then, to build the project run:
cmake --build build
If you want to run the tests, in the build folder, run:
build
ctest