-
Notifications
You must be signed in to change notification settings - Fork 0
/
run-cmake-for-cplex-debug-x86
executable file
·40 lines (28 loc) · 1.17 KB
/
run-cmake-for-cplex-debug-x86
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
38
39
40
#!/bin/bash
export CPLEX="$HOME/ilog/cplex121/lib/x86_debian4.0_4.1/static_pic/libcplex.a"
if [ ! -e "$CPLEX" ]; then
echo "$CPLEX is not the libcplex.a library file"
exit 1
fi
export ILOCPLEX="$HOME/ilog/cplex121/lib/x86_debian4.0_4.1/static_pic/libilocplex.a"
if [ ! -e "$ILOCPLEX" ]; then
echo "$ILOCPLEX is not the libilocplex.a library file"
exit 1
fi
export CONCERT="$HOME/ilog/concert29/lib/x86_debian4.0_4.1/static_pic/libconcert.a"
if [ ! -e "$CONCERT" ]; then
echo "$CONCERT is not the libconcert.a library file"
exit 1
fi
export CPLEX_INCLUDES="$HOME/ilog/cplex121/include"
if [ ! -e "$CPLEX_INCLUDES/ilcplex/ilocplex.h" ]; then
echo "$CPLEX_INCLUDES does not point to a path containing ilcplex/ilocplex.h"
exit 1
fi
export CONCERT_INCLUDES="$HOME/ilog/concert29/include"
if [ ! -e "$CONCERT_INCLUDES/ilconcert/iloenv.h" ]; then
echo "$CONCERT_INCLUDES does not point to a path containing ilconcert/iloenv.h"
exit 1
fi
cd debug
cmake -DCMAKE_VERBOSE_MAKEFILE=TRUE -DCMAKE_BUILD_TYPE=Debug -DCPLEX="$CPLEX" -DILOCPLEX="$ILOCPLEX" -DCONCERT="$CONCERT" -DCPLEX_INCLUDES="$CPLEX_INCLUDES" -DCONCERT_INCLUDES="$CONCERT_INCLUDES" ../src