From fe43c07883496ff08b410ad5fc1007d7e388267c Mon Sep 17 00:00:00 2001 From: Matt Laux Date: Mon, 21 Oct 2019 23:51:46 -0500 Subject: [PATCH] build system now working with both CLI and system6 --- cli/CMakeLists.txt | 14 ++++++++++++++ cli/compile.sh | 6 ++++++ 2 files changed, 20 insertions(+) create mode 100644 cli/CMakeLists.txt create mode 100755 cli/compile.sh diff --git a/cli/CMakeLists.txt b/cli/CMakeLists.txt new file mode 100644 index 0000000..5807a46 --- /dev/null +++ b/cli/CMakeLists.txt @@ -0,0 +1,14 @@ +project(GameBoyEmulator) +cmake_minimum_required(VERSION 3.9) + +include_directories(../src) + +add_executable(gb6 + ../src/bootstrap.c + ../src/cpu.c + ../src/dmg.c + ../src/instructions.c + ../src/lcd.c + ../src/rom.c + emulator.c +) diff --git a/cli/compile.sh b/cli/compile.sh new file mode 100755 index 0000000..4d9d243 --- /dev/null +++ b/cli/compile.sh @@ -0,0 +1,6 @@ +#!/bin/sh +mkdir -p build +cd build +cmake .. +make +cd ..