forked from vfxpro99/usd-build-club
-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure-linux.sh
27 lines (24 loc) · 904 Bytes
/
configure-linux.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/bash
CONFIGURE_SCRIPTDIR=`dirname $0`
ROOT=$(pwd)
SOURCEDIR="`cd ${CONFIGURE_SCRIPTDIR}/../USD;pwd`"
cd ${ROOT}
BUILDDIR=${ROOT}/local
echo "build from USD sources at ${SOURCEDIR}/pxr"
echo "local dir for prerequisites is ${BUILDDIR}"
echo "Configuring for make"
cmake ${SOURCEDIR} \
-DCMAKE_INSTALL_PREFIX="${BUILDDIR}" \
-DCMAKE_PREFIX_PATH="${BUILDDIR}" \
-DALEMBIC_DIR="${BUILDDIR}" \
-DDOUBLE_CONVERSION_DIR="${BUILDDIR}" \
-DGLEW_LOCATION="${BUILDDIR}" \
-DOIIO_LOCATION="${BUILDDIR}" \
-DOPENEXR_ROOT_DIR="${BUILDDIR}" \
-DOPENSUBDIV_ROOT_DIR="${BUILDDIR}" \
-DQT_USE_FRAMEWORKS=0 \
-DQT_ROOT_DIR="${BUILDDIR}" \
-DPTEX_LOCATION="${BUILDDIR}" \
-DTBB_ROOT_DIR="${BUILDDIR}" \
-DPXR_INSTALL_LOCATION="${BUILDDIR}" \
-DBoost_INCLUDE_DIR="${BUILDDIR}/include" -DBoost_LIBRARY_DIR="${BUILDDIR}/lib"