C++ multiplatform project using SDL2, Eigen, Dear ImGui, ImPlot and nlohmann/json.
sudo apt update
sudo apt install build-essential cmake gitsudo dnf install cmake gcc-c++ git- CMake (3.15+)
- C++ Compiler (MSVC, MinGW-w64, or Clang)
- Git
Note: SDL2 and Eigen will be downloaded automatically by CMake if not found on your system.
- Clone with submodules:
git clone --recursive https://github.com/your-username/ArtificialLife.git
cd ArtificialLifeIf already cloned without --recursive:
git submodule update --init --recursive- Build:
mkdir build && cd build
cmake ..
cmake --build .- Run:
# Linux/Mac
./ArtificialLife
# Windows
.\Release\ArtificialLife.exeArtificialLife/
├── CMakeLists.txt # Main CMake configuration
├── src/ # Source code
├── include/ # Headers
├── external/ # External dependencies (submodules)
├── imgui/ # Dear ImGui
├── implot/ # ImPlot
└── json/ # nlohmann/json
- C/C++ (Microsoft)
- CMake Tools
- CMake Language Support
- Open folder in VSCodium
Ctrl+Shift+P→ "CMake: Configure"- Select your compiler
F7to buildCtrl+F5to run
- SDL2 for rendering and window management
- Eigen for vector/matrix math
- Dear ImGui for immediate mode GUI
- ImPlot for plotting and visualizations
- nlohmann/json for JSON serialization
- Cross-platform build system (Windows/Linux/Mac)
MIT