ConceptCore/BuildAll.sh

28 lines
613 B
Bash

#
# Build script for linux distro
#
set -e # Exit immediately if a command exits with a non-zero status.
set -u # Treat unset variables as an error when substituting.
export CMAKE_BUILD_TYPE="Release"
# Choose between clang/clang++ or gcc/g++
export CC="gcc"
export CXX="g++"
# Build CCL
cd /home/ccl
conan profile detect --force
conan install . --build=missing
cmake --preset conan-release
cmake --build --preset conan-release
ctest --test-dir build/Release --output-on-failure
cmake --install build/Release --prefix /home/output
# Build pyconcept
cd /home/pyconcept
sh scripts/Build.sh
echo 'Done'
exit 0