Semestral project of BI-PGR course on CTU in Prague, FIT.
Create DEV_HOME
environment variable containing the path to the folder, which has the following structure:
Include
Library
This project requires following external libraries to be available.
- assimp 5.0.1
- glew 2.1.0
- glfw 3.3.2
- gli 559cbe1ec38878e182507d331e0780fbae5baf15 Last release of this library was on November 12th 2016 and is broken.
- glm 0.9.9.8
Install gli into External
directory.
apt install libglfw3-dev libglew-dev libglm-dev zlib1g-dev libassimp-dev libyaml-cpp-dev libbullet-dev
pacman -Sy glfw-x11 glew glm zlib assimp yaml-cpp bullet
Install gli (559cbe1) library into "External" directory (External/gli/gli.hpp). You can use the following shell script bellow (Linux only)
PROJECT_DIR="$(pwd)"
TMP_DIR="$(mktemp -d)"
pushd "${TMP_DIR}"
wget -O gli.zip https://github.com/g-truc/gli/archive/559cbe1ec38878e182507d331e0780fbae5baf15.zip
unzip -q gli.zip
cp -r gli-559cbe1ec38878e182507d331e0780fbae5baf15/gli "${PROJECT_DIR}/External"
popd
rm -r "${TMP_DIR}"
Continue to subsection based on your platform.
Install dependencies using apt.
apt-get install -y cmake ninja-build libglew-dev libglfw3-dev libglm-dev zlib1g-dev libassimp-dev libyaml-cpp-dev libbullet-dev
Generate project with CMake (Ninja generator)
cmake -G Ninja -D CMAKE_BUILD_TYPE=Release -B Build
Build
cmake --build Build -- -j$(nproc)
Install dependencies using vcpkg
vcpkg install --triplet x64-windows glew glfw3 glm zlib assimp yaml-cpp bullet3
Generate project with CMake
cmake -DCMAKE_TOOLCHAIN_FILE=<path_to_vcpkg>/scripts/buildsystems/vcpkg.cmake -B Build
Build
cmake --build Build