(WIP: refactoring, cleaning up and documenting the code)
- cmake
- I used vcpkg to install the following necessary C++ libraries for this project:
- glew
- glfw3
- glm
- imgui[opengl3-gl3w-binding]
- stb
- Install
cmake-3.18.3-win64-x64.msi
from this page https://cmake.org/download/ - Install vcpkg:
- Clone vcpkg repo:
git clone https://github.com/Microsoft/vcpkg.git
- Enter vcpkg folder:
cd vcpkg
- Build vcpkg:
bootstrap-vcpkg && vcpkg integrate install
- Clone vcpkg repo:
- Install required C++ libs from vcpkg (I've only tested x64 build):
vcpkg install glew:x64-windows glfw3:x64-windows glm:x64-windows imgui[opengl3-gl3w-binding]:x64-windows stb:x64-windows
# Configure the project and generate a native build system. Please replace <vcpkg_dir> with the actual path to your vcpkg folder.
cmake -DCMAKE_TOOLCHAIN_FILE=<vcpkg_dir>/scripts/buildsystems/vcpkg.cmake -S . -B build
# Compile / build the project
cmake --build build