File size: 618 Bytes
784ee2c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/env bash
#
# Set developer paths and environment variables here,
# user settings go in ./env.sh
function __setpaths() {
    local DIR=$(readlink -f "$(dirname "${BASH_SOURCE[0]:-${(%):-%x}}")")
    [ "$(find $DIR/dependencies -type f -user root)" ] && echo "WARNING! Files set up by sudo found in $DIR"
    export PATH="$DIR/dependencies/bin:$PATH"
    export CMAKE_INSTALL_RPATH=$DIR/dependencies/lib:$DIR/dependencies/lib64

    if [[ "$OSTYPE" == "darwin"* ]]; then
        export CMAKE_PREFIX_PATH="$(brew --prefix or-tools)"
        export QT_QPA_PLATFORM=cocoa
    fi
}
__setpaths
unset -f __setpaths