osquery-1/tools/generate_xcode_project.sh
2018-06-26 17:13:48 +01:00

14 lines
248 B
Bash
Executable File

#!/bin/bash
set -e
BUILD_DIR=$1
CMAKE_COMMAND="$2 -G Xcode"
echo "Cleaning build directory: $BUILD_DIR"
rm -rf ${BUILD_DIR}
mkdir -p ${BUILD_DIR}
echo "Generating xcode project using cmake: $CMAKE_COMMAND"
cd ${BUILD_DIR}
eval ${CMAKE_COMMAND}