Scripts are
bash
Make sure you have done the setup for macOS
This is the recommended way for building and working with the sample code.
Start bash
(if your default shell is zsh
or something else):
bash
source ./configure.sh
mkdir -p ./build/debug_x64
pushd ./build/debug_x64
cmake --preset Debug_x64 -G 'Ninja' ../..
ninja
popd
mkdir -p ./build/debug_arm64
pushd ./build/debug_arm64
cmake --preset Debug_arm64 -G 'Ninja' ../..
ninja
popd
pushd ./build/debug_x64
ninja clean
popd
pushd ./build/debug_arm64
ninja clean
popd
source ./configure.sh
mkdir -p ./xcode
pushd ./xcode
# Intel x64
cmake --preset Debug_x64 -G 'Xcode' ..
# Apple Silicon arm64
cmake --preset Debug_arm64 -G 'Xcode' ..
popd
Open the project in Xcode:
pushd ./xcode
open primoburner-cpp.xcodeproj
popd
In the Xcode menu select Product | Scheme | ALL_BUILD
In the Xcode menu select Product | Build For | Running
In the Xcode menu select Product | Clean Build Folder