...
This little script is not the prettiest way to do this, but it works as a "cut and paste" way to add what is missing while reusing what we can to make this work on both Ranger and Lonestar. There's probably a better way to do this within cmake.
Code Block |
---|
cp ./CMakeFiles/express.dir/link.txt ./CMakeFiles/express.dir/link.txt.original cat ./CMakeFiles/express.dir/link.txt.original|sed -r "s/\s+/\n/g"|awk -v TACC_BOOST_INC=$TACC_BOOST_INC -v TACC_BOOST_LIB=$TACC_BOOST_LIB -v MY_BAMTOOLS_DIR=$MY_BAMTOOLS_DIR 'NR==1{print $0;printf "-I%s\n",TACC_BOOST_INC};NR>1{print};/rdynamic/{exit};END{printf "-Wl,-rpath,%s/lib -L%s/lib -lbamtools %s/lib/libbamtools.a -L%s -lboost_filesystem -lboost_thread -lboost_system -lboost_program_options -lpthread\n",MY_BAMTOOLS_DIR,MY_BAMTOOLS_DIR,MY_BAMTOOLS_DIR,TACC_BOOST_LIB;}' | tr '\n' ' ' | xargs echo > ./CMakeFiles/express.dir/link.txt |
...