Learn cmake from the cmake-practice and make src code from the book correct running.