1
0

Add scripts for compiling

This commit is contained in:
Jip J. Dekker 2021-06-15 17:11:20 +10:00
parent cae2b43dcc
commit 7c82ed140c
No known key found for this signature in database
GPG Key ID: 517DF4A00618C9C3
3 changed files with 22 additions and 0 deletions

2
.gitignore vendored
View File

@ -1 +1,3 @@
bin/
software/build/
software/install/

4
clean.sh Executable file
View File

@ -0,0 +1,4 @@
#!/usr/bin/env bash
set -e
rm -rf software/build/* software/install/*

16
install.sh Executable file
View File

@ -0,0 +1,16 @@
#!/usr/bin/env bash
set -e
module load Bison
module load CMake
module load flex
mkdir -p software/{build,install}
# Build Chuffed
for dir in "chuffed" "chuffed_on_restart" "gecode" "gecode_on_record" "gecode_on_replay" "gecode_on_restart"
do
cmake -S software/${dir} -B software/build/${dir} -DCMAKE_BUILD_TYPE=RELEASE -DCMAKE_INSTALL_PREFIX=`pwd`/software/install/${dir}
cmake --build software/build/${dir} --config Release --target install
done