transitioned to cmake for desktop build

This commit is contained in:
essej
2022-04-19 16:30:36 -04:00
parent a4922bd275
commit 7e71997593
13 changed files with 1650 additions and 44 deletions

26
buildcmake.sh Executable file
View File

@ -0,0 +1,26 @@
#!/bin/bash
OPTS=""
CONFIG="Release"
if [ "$1" = "debug" ]; then
CONFIG="Debug"
fi
JOBS=2
if nproc &> /dev/null ; then
JOBS=$(nproc)
elif sysctl -n hw.logicalcpu &> /dev/null; then
JOBS=$(sysctl -n hw.logicalcpu)
elif [ -n "$NUMBER_OF_PROCESSORS" ] ; then
JOBS=$NUMBER_OF_PROCESSORS
fi
OPTS="-j ${JOBS}"
cmake --build build --config $CONFIG $OPTS
if [ -d build32 ] ; then
cmake --build build32 --config $CONFIG $OPTS
fi