C++ project template If you want to install the project in a different directory: cmake .. -DCMAKE_INSTALL_PREFIX="/path/to/install/"