-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy pathbuild.sh
More file actions
executable file
·40 lines (34 loc) · 756 Bytes
/
Copy pathbuild.sh
File metadata and controls
executable file
·40 lines (34 loc) · 756 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
35
36
37
38
39
#!/bin/bash
echo "Trying to autobuild ViDi..."
#QT check
QT_VER=`qmake -v`
str=$QT_VER
substr="Qt version 5"
echo $QT_VER
if [[ $str == *"$substr"* ]]; then
echo "[+] Qt5 found!"
else
str2=`whereis qt5`
substr2="/qt5"
if [[ $str2 == *"$substr2"* ]]; then
echo "[+] Qt5 found!"
else
echo "Install Qt5 SDK first"
exit -1
fi
fi
CMAKE_VER=$(cmake --version)
CMAKEV="cmake version"
if echo "$CMAKE_VER" | grep -q "$CMAKEV"; then
echo "[+] CMake found!"
else
echo "[-] CMake NOT found!"
echo "Install cmake first"
exit -1
fi
mkdir build
echo "[+] build directory created"
cd build
mkdir $(pwd)
cmake -DCMAKE_INSTALL_PREFIX:PATH=$(pwd)/out ..
cmake --build . --target install --config Release