-
Notifications
You must be signed in to change notification settings - Fork 24
/
unix_setup.sh
executable file
·35 lines (27 loc) · 1.02 KB
/
unix_setup.sh
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
#!/bin/bash
# First, download all submodules and repositories
echo "Downloading all the submodules / repositories..."
git submodule update --init --recursive
# Update packages repository
apt-get update
# Install pkg-config for CMake to work properly
echo "Installing pkg-config..."
apt-get install -y pkg-config
# Install doxygen - needed for build & install of GLFW
echo "Installing doxygen..."
apt-get install -y doxygen
# Install xorg-dev - needed for build & install of GLFW
echo "Installing xorg-dev..."
apt-get install -y xorg-dev
# Now we can build and install GLFW
echo "Building and installing GLFW..."
mkdir -p dependencies/glfw/build
(cd dependencies/glfw/build && cmake .. && make -j4 && make install)
# Same goes for Assimp
echo "Building and installing Assimp..."
mkdir -p dependencies/assimp/build
(cd dependencies/assimp/build && cmake .. && make -j4 && make install)
# Now go back to the root folder and now we can finally build the tutorials!
echo "Building tutorials..."
mkdir build
(cd build && cmake .. && make -j4)