-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·24 lines (20 loc) · 765 Bytes
/
Copy pathsetup.sh
File metadata and controls
executable file
·24 lines (20 loc) · 765 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/usr/bin/env bash
# Create our Python virtual environment. This will be found in the CMakeLists and allow us to automatically build our
# wheel.
if [ ! -d ".venv" ]; then
python3.12 -m venv .venv;
. .venv/bin/activate;
(
cd src/python || (echo "python source directory not found" && exit)
python3 -m pip install -r requirements.txt
)
fi
# --- Build Debug Version ---
echo "Configuring and building Debug version..."
cmake -S . -B build_debug -DCMAKE_BUILD_TYPE=Debug
cmake --build build_debug
# --- Build Release Version ---
echo "Configuring and building Release version..."
cmake -S . -B build_release -DCMAKE_BUILD_TYPE=Release
cmake --build build_release
echo "Setup complete. Builds are in build_debug/ and build_release/"