Add scripts for compiling
This commit is contained in:
parent
cae2b43dcc
commit
7c82ed140c
2
.gitignore
vendored
2
.gitignore
vendored
@ -1 +1,3 @@
|
||||
bin/
|
||||
software/build/
|
||||
software/install/
|
||||
|
4
clean.sh
Executable file
4
clean.sh
Executable file
@ -0,0 +1,4 @@
|
||||
#!/usr/bin/env bash
|
||||
set -e
|
||||
|
||||
rm -rf software/build/* software/install/*
|
16
install.sh
Executable file
16
install.sh
Executable 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
|
||||
|
Reference in New Issue
Block a user