gctf2023/pwn/flipper/dist/setup_cmake.sh
2023-11-24 13:11:34 -05:00

12 lines
274 B
Bash
Executable File

#!/usr/bin/env sh
# Use BUILD_DIR env var as path if provided, otherwise use default
DEFAULT_DIR="build"
BUILD_DIR="${BUILD_DIR:-${DEFAULT_DIR}}"
# Create the build directory and initialize cmake pointing to this source folder
cmake -B"${BUILD_DIR}" -H.
cd build
make -j