mirror of
https://github.com/CoolProp/CoolProp.git
synced 2026-01-12 15:38:29 -05:00
20 lines
446 B
Bash
20 lines
446 B
Bash
#!/bin/bash
|
|
#
|
|
set -x
|
|
# Specify the files
|
|
SOURCES=( "CoolPropTools" "MatrixMath" "Solvers" "PolyMath" )
|
|
ALLSRCS=""
|
|
#
|
|
CATCH="-I externals/Catch/include -D ENABLE_CATCH -D CATCH_CONFIG_MAIN "
|
|
#CATCH=""
|
|
#
|
|
LENGTH=${#SOURCES[@]}
|
|
#
|
|
# Loop through the sources and compile them
|
|
for (( i=0; i<${LENGTH}; i++ )); do
|
|
g++ $CATCH-I include -c -o ${SOURCES[$i]}.o src/${SOURCES[$i]}.cpp
|
|
ALLSRCS="$ALLSRCS ${SOURCES[$i]}.o"
|
|
done
|
|
g++ $ALLSRCS -o test
|
|
exit 0
|