Skip to content

ajschlosser/tile-project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build on macOS >=10.14.6 with g++

Install build dependencies

This assumes that your systen already has Homebrew (https://brew.sh/).

$ brew install sdl2 sdl2_image sdl2_ttf jsoncpp

Build

command line
$ g++ src/**/*.cc \
    -I./include \
    -o bin/game \
    -lSDL2 \
    -lSDL2_image \
    -lSDL2_ttf \
    -ljsoncpp \
    -stdlib=libc++ \
    -std=gnu++2a \
    -m64 -O3 -Wall
make
$ make

Run

$ bin/game