Mercurial > dedupe
view setup.sh @ 55:19b2a2d98788
Use define to multiplex between different types of decoders.
Expand the API.
| author | Tom Fredrik Blenning Klaussen <bfg@blenning.no> |
|---|---|
| date | Thu, 13 Sep 2012 23:47:29 +0200 |
| 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}"
