Files
CoolProp/dev/scripts/buildFiles.sh

17 lines
355 B
Bash

#!/bin/bash
#
set -x
# Specify the files
SOURCES=( "CoolPropTools" "MatrixMath" "Solvers" "PolyMath" )
ALLSRCS=""
#
LENGTH=${#SOURCES[@]}
#
# Loop through the sources and compile them
for (( i=0; i<${LENGTH}; i++ )); do
g++ -I include -c -o ${SOURCES[$i]}.o src/${SOURCES[$i]}.cpp
ALLSRCS="$ALLSRCS ${SOURCES[$i]}.o"
done
g++ $ALLSRCS -o test
exit 0