summaryrefslogtreecommitdiffstats
path: root/recipe/build.sh
blob: 22cfae863950bc55aeb27ac285ce5c5ec0de843a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
if [ -z "$CIL_VERSION" ]; then
    echo "Need to set CIL_VERSION"
    exit 1
fi
# mkdir ${SRC_DIR}/ccpi
mkdir -p ${SRC_DIR}/ccpi/Wrappers/Python
cp -r "${RECIPE_DIR}/../Wrappers/Python/test" ${SRC_DIR}/ccpi/Wrappers/Python

# cd ${SRC_DIR}/ccpi/Wrappers/Python
# $PYTHON setup.py install


mkdir ${SRC_DIR}/build_framework
#cp -r "${RECIPE_DIR}/../" ${SRC_DIR}/build_framework

cd ${SRC_DIR}/build_framework
cmake ${RECIPE_DIR}/../ -DCONDA_BUILD=ON \
                        -DCMAKE_BUILD_TYPE="Release"\
                        -DLIBRARY_LIB=$CONDA_PREFIX/lib \
                        -DLIBRARY_INC=$CONDA_PREFIX \
                        -DCMAKE_INSTALL_PREFIX=$PREFIX

make install
# $PYTHON setup.py install