Files
MapLibreParticleLab/platform/qt/scripts/configure_Qt6_macOS.sh
Tadej Novak 95c7e3818d [cmake] Use MLN prefix instead of MBGL (#1054)
Co-authored-by: Bart Louwers <bart@emeel.net>
2023-04-28 00:34:38 +02:00

20 lines
439 B
Bash
Executable File

#!/bin/bash
if [[ -z ${1+x} ]]; then
echo "Error: Pass the path to maplibre-gl-native as first argument" 1>&2
exit 1
fi
if [[ -z ${2+x} ]]; then
echo "Error: Pass the install prefix as the second argument" 1>&2
exit 2
fi
qt-cmake "$1" \
-G Ninja \
-DCMAKE_BUILD_TYPE="RelWithDebInfo" \
-DCMAKE_OSX_DEPLOYMENT_TARGET="10.14" \
-DCMAKE_OSX_ARCHITECTURES="x86_64;arm64" \
-DMLN_WITH_QT=ON \
-DCMAKE_INSTALL_PREFIX="$2"