-
Notifications
You must be signed in to change notification settings - Fork 0
/
cyclops.def
37 lines (30 loc) · 924 Bytes
/
cyclops.def
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
Bootstrap: library
From: ubuntu:20.04
%setup
git submodule update --remote --merge
%files
src /cyclops/src
test /cyclops/test
vendor /cyclops/vendor
web /cyclops/web
cmake /cyclops/cmake
CMakeLists.txt /cyclops
%post
echo "deb http://archive.ubuntu.com/ubuntu/ focal universe" >> /etc/apt/sources.list
apt-get -y update
apt-get -y install build-essential cmake libglpk-dev \
libcgal-dev libboost-serialization-dev \
libboost-program-options-dev libboost-filesystem-dev \
libboost-iostreams-dev libeigen3-dev libgmp-dev \
openssl libjsoncpp-dev
cd /cyclops
cmake -Bbuild -H.
cmake --build build -- cyclops -j
%test
if [ -f /cyclops/build/cyclops ]; then
echo "compiling succeeded"
else
echo "something failed"
fi
%runscript
/cyclops/build/cyclops $@