gctf2023/pwn/flipper/dist/setup_cmake.sh

12 lines
274 B
Bash
Raw Normal View History

2023-11-24 18:11:34 +00:00
#!/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