2024-03-11 15:36:09 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
SOURCE=${BASH_SOURCE[0]}
|
|
|
|
while [ -L "$SOURCE" ]; do
|
|
|
|
DIR=$(cd -P "$(dirname "$SOURCE")" >/dev/null 2>&1 && pwd)
|
|
|
|
SOURCE=$(readlink "$SOURCE")
|
|
|
|
[[ $SOURCE != /* ]] && SOURCE=$DIR/$SOURCE
|
|
|
|
done
|
|
|
|
DIR=$(cd -P "$(dirname "$SOURCE")" >/dev/null 2>&1 && pwd)
|
|
|
|
|
|
|
|
BUILD_DIR=$(realpath $DIR/../build)
|
|
|
|
SRC_DIR=$(realpath $DIR/../src)
|
|
|
|
CMAKE_INSTALL_PREFIX=$(realpath $DIR/../../openMVG/build/_install)
|
|
|
|
ls $BUILD_DIR
|
|
|
|
|
|
|
|
set -e
|
|
|
|
printf "\033c"
|
|
|
|
|
|
|
|
cd ${BUILD_DIR}
|
|
|
|
cmake \
|
|
|
|
${SRC_DIR}\
|
|
|
|
-DCMAKE_INSTALL_PREFIX=${CMAKE_INSTALL_PREFIX}\
|
2024-03-12 02:09:11 +01:00
|
|
|
-DCMAKE_POSITION_INDEPENDENT_CODE=ON \
|
|
|
|
-DCMAKE_BUILD_TYPE=Debug
|
2024-03-11 15:36:09 +01:00
|
|
|
make
|
|
|
|
|
2024-03-12 02:09:11 +01:00
|
|
|
printf "\033c"
|
|
|
|
|
2024-03-11 15:36:09 +01:00
|
|
|
set +e
|