Suggested setups per OS:
- Install CMake.
- Install the Visual Studio Build Tools with the "Desktop development with C++" workload.
If using VS Code, set up LLDB.
Install dependencies via Homebrew:
brew install \
irrlicht \
assimp \
cmake \
llvm \
pkg-config
Clone the repo with submodules:
git clone --recurse-submodules git@github.com:Riari/iris-engine.git
Bootstrap vcpkg:
.\external\vcpkg\bootstrap-vcpkg.bat -disableMetrics # Windows
.\external\vcpkg\bootstrap-vcpkg.sh -disableMetrics # Unix shells
Create a Visual Studio toolchain and point it to the VS Build Tools directory, e.g.:
C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools
If using Ninja, set the generator specified in the CMake Debug profile to Ninja
.
Install dependencies:
.\external\vcpkg\vcpkg install
Run CMake. For example, with Ninja and a suitable C++ compiler installed, run:
cmake . -DCMAKE_BUILD_TYPE=Debug -G Ninja
Install these extensions:
Use the CMake:
commands in the command palette to configure, build, and debug the project.
Allow CLion to load the CMake project and generate a debug configuration. It should work out of the box with the project's CMakeLists.txt
.