1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
#!/bin/bash currentPath=$(pwd) libPath=$(pwd)/../jthread-1.3.3 if [ -d "./jthread" ]; then rm -rf jthread fi mkdir jthread cd jthread installPath=$(pwd) cd ${libPath} if [ -d "./build" ]; then rm -rf build fi mkdir build cd build cmake -DCMAKE_INSTALL_PREFIX=${installPath} -DCMAKE_USE_OPENSSL=OFF .. make make install cd ..