build system now working with both CLI and system6

This commit is contained in:
Matt Laux 2019-10-21 23:51:46 -05:00
parent e1be41b0f2
commit fe43c07883
2 changed files with 20 additions and 0 deletions

14
cli/CMakeLists.txt Normal file
View File

@ -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
)

6
cli/compile.sh Executable file
View File

@ -0,0 +1,6 @@
#!/bin/sh
mkdir -p build
cd build
cmake ..
make
cd ..