addboost.sh 326 B

123456789101112
  1. if [ "$#" -lt 1 ]; then
  2. echo "没有输入"
  3. echo "$1"
  4. exit
  5. fi
  6. BOOSTLIB='/home/yuchuli/tem/boost_1_69_0/stage/lib' #BOOST LIB路径
  7. BOOSTINC='/home/yuchuli/tem/boost_1_69_0' #BOOST INCLUDE 路径
  8. sed -i "s:INCPATH =:INCPATH =-I${BOOSTINC} :g" $1
  9. sed -i "s:LIBS = :LIBS = -L${BOOSTLIB} :g" $1