2014-10-04 11:23:23 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
2016-01-21 08:22:42 +00:00
|
|
|
free -m
|
2014-10-04 11:23:23 +00:00
|
|
|
mkdir build
|
|
|
|
cd build
|
2015-03-17 13:45:31 +00:00
|
|
|
export CODE_COVERAGE=1
|
|
|
|
if [ "${CC}" = "clang" ]; then export CODE_COVERAGE=0; fi
|
|
|
|
${ANALYZE}cmake .. -DBUILD_WITH_CODE_COVERAGE=${CODE_COVERAGE} -DBUILD_UNITTESTS=1 -DCMAKE_INSTALL_PREFIX=/usr -DBINDIR=/usr/games -DCMAKE_BUILD_TYPE="RelWithDebInfo" -DUSE_SYSTEM_TINYXML=TRUE
|