Mercurial > dedupe
view setup.sh @ 71:88f408092b6d
Support for code coverage analysis with gcov.
| author | Tom Fredrik Blenning Klaussen <bfg@bfgconsult.no> |
|---|---|
| date | Thu, 31 Jan 2013 16:15:39 +0100 |
| parents | aae83c0a771d |
| children | a591accb07b5 |
line wrap: on
line source
#!/bin/sh ADD_DEFINITION() { KEY=$1 VALUE=$(eval "echo \${${KEY}}") if [ -n "${VALUE}" ] then DEFINITIONS="${DEFINITIONS} -D${KEY}=${VALUE}" fi } LOCATION=$(dirname $0) if [ -f ~/.auto_cmake ] then . ~/.auto_cmake fi DEFINITIONS="" ADD_DEFINITION BOOST_ROOT ADD_DEFINITION QT_QMAKE_EXECUTABLE eval "cmake ${DEFINITIONS} ${LOCATION}"
