think I got cmake working fine

This commit is contained in:
Matthew Laux 2019-10-16 18:32:37 -05:00
parent 1ee2c53524
commit c1873bdc05
2 changed files with 8 additions and 0 deletions

View File

@ -1,3 +1,5 @@
project(GameBoyEmulator)
cmake_minimum_required(VERSION 3.9)
add_application(Emulator
src/bootstrap.c
src/cpu.c

6
compile.sh Executable file
View File

@ -0,0 +1,6 @@
#!/bin/sh
mkdir -p build
cd build
cmake .. -DCMAKE_TOOLCHAIN_FILE=../../Retro68-build/toolchain/m68k-apple-macos/cmake/retro68.toolchain.cmake
make
cd ..