1 2 3 4 5 6 7
#!/bin/sh -e mkdir build && cd build cmake -DCMAKE_INSTALL_PREFIX=/usr .. cmake --build . DESTDIR="$1" cmake --install .