You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
404 B
20 lines
404 B
2 years ago
|
#!/usr/bin/env bash
|
||
|
|
||
|
if [ -z "$1" ]
|
||
|
then
|
||
|
printf "Usage: setup.sh install_directory [dependencies].\n" 1>&2
|
||
|
exit 1
|
||
|
fi
|
||
|
|
||
|
cd $(dirname $0)
|
||
|
libname=$(basename $(pwd))
|
||
|
mkdir -p build
|
||
|
cd build
|
||
|
cmake -DCMAKE_INSTALL_DATAROOTDIR="$1" -DCMAKE_INSTALL_INCLUDEDIR="$1/include" -Wno-dev ../
|
||
|
make -j8 install
|
||
|
|
||
|
# Moving directories
|
||
|
mv "$1/include/pybind11" "$1/temp"
|
||
|
rmdir "$1/include"
|
||
|
mv "$1/temp" "$1/include"
|