Yong Li | 8f0c048 | 2017-09-01 00:32:09 +0800 | [diff] [blame] | 1 | #!/bin/sh |
2 | |||||
3 | #Currently there are some build errors with the pre-instaleld libgtest-dev, as a workaround, we can build it with these steps(first time only): | ||||
4 | #cd googletest/googletest/ | ||||
5 | #cmake ./ | ||||
6 | #make | ||||
7 | #sudo make install | ||||
8 | |||||
9 | cd `dirname $0` | ||||
10 | #update source code | ||||
11 | #git pull | ||||
12 | git submodule init | ||||
13 | git submodule sync | ||||
14 | git submodule update | ||||
15 | |||||
16 | mkdir -p build | ||||
17 | cd build | ||||
18 | cmake .. -DHUNTER_ENABLED=ON | ||||
19 | make -j$(nproc) |