https://github.com/CoolProp/CoolProp
Raw File
Tip revision: 84897ce7a110a70ba2229e7a1f5d17ea03efd068 authored by Jorrit Wronski on 16 December 2022, 12:59:36 UTC
use no version number at all to fix the source build
Tip revision: 84897ce
buildFiles.sh
#!/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
back to top