At the first time build, you should run
mkdir build
First, move corrent directly to 'build'
cd build
update Makefile
cmake ..
build
cmake --build .
In 'build' directory
minichessAI
First, move corrent directory to test
cd test
After that, do same process of main build
In 'test/build' directory
minichessAI_test