-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
34 lines (29 loc) · 823 Bytes
/
Copy pathinstall.sh
File metadata and controls
34 lines (29 loc) · 823 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
25
26
27
28
29
30
31
32
33
34
#!/bin/bash
echo "=========================================="
echo " V2V Database Installer (Linux/macOS)"
echo "=========================================="
# Create build directory
mkdir -p build
cd build
# Configure for Release and Install to ../install
echo "[1/2] Configuring..."
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=../install ..
if [ $? -ne 0 ]; then
echo "Configuration failed."
exit 1
fi
# Build and Install
echo "[2/2] Installing..."
cmake --build . --config Release --target install
if [ $? -ne 0 ]; then
echo "Installation failed."
exit 1
fi
cd ..
echo ""
echo "=========================================="
echo " SUCCESS! V2V Database Installed."
echo "=========================================="
echo "Run the database with:"
echo " ./install/bin/mydb"
echo ""