I'm working with cmake. And usually I configured it the following way
mkdir build
cd build
cmake -GNinja ..
And for building I just call ninja.
I want to configure Build to run ninja on specified directory. It is possible through the call ninja -C /path/to/build or cding to build dir and call ninja without arguments. It is also possible to provide a selected target to ninja's argument ninja lib1 or ninja bin1.