From c1873bdc0505cc91041fc3e59496c5c4c7aaba3a Mon Sep 17 00:00:00 2001 From: Matthew Laux Date: Wed, 16 Oct 2019 18:32:37 -0500 Subject: [PATCH] think I got cmake working fine --- CMakeLists.txt | 2 ++ compile.sh | 6 ++++++ 2 files changed, 8 insertions(+) create mode 100755 compile.sh diff --git a/CMakeLists.txt b/CMakeLists.txt index f6987c6..8971508 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,3 +1,5 @@ +project(GameBoyEmulator) +cmake_minimum_required(VERSION 3.9) add_application(Emulator src/bootstrap.c src/cpu.c diff --git a/compile.sh b/compile.sh new file mode 100755 index 0000000..ee62459 --- /dev/null +++ b/compile.sh @@ -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 ..