A C++ project using raylib for rendering.
- CMake 3.20 or higher
- C++17 compatible compiler
- raylib library (install path exposed via the
RAYLIB_ROOTorRAYLIB_DIRenvironment variable)
# Install dependencies (if using Homebrew)
brew install cmake raylib
# Create build directory
mkdir build
cd build
# Configure and build
cmake ..
cmake --build .
# Run the executable
./nnsim# Install dependencies
# Option 1: Using vcpkg (recommended)
vcpkg install raylib
# Option 2: Download raylib from https://www.raylib.com/
# After installing, point CMake at the unpacked folder:
setx RAYLIB_ROOT C:\raylib\raylib
# Create build directory
mkdir build
cd build
# Configure and build (using Visual Studio)
cmake ..
cmake --build . --config Release
# Run the executable
.\Release\nnsim.exe# Install dependencies (Ubuntu/Debian)
sudo apt-get install cmake libraylib-dev
# Create build directory
mkdir build
cd build
# Configure and build
cmake ..
cmake --build .
# Run the executable
./nnsimmain.cpp- Main application entry pointCMakeLists.txt- CMake build configuration.gitignore- Git ignore rules for build artifacts and IDE files
When collaborating on this project:
- Never commit build artifacts (executables, object files, etc.)
- Keep the build directory out of version control
- Test builds on your platform before pushing changes