From 6055a42c67601df838dd27e3270f80c53119db2e Mon Sep 17 00:00:00 2001 From: IniKiwi Date: Wed, 6 Jul 2022 09:47:31 +0200 Subject: [PATCH] build par cmake --- CMakeLists.txt | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 CMakeLists.txt diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..66b4196 --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,22 @@ +cmake_minimum_required(VERSION 3.0) +project(nemu) + +set(SRCS + src/main.c + src/cpu.c + src/syscall.c + src/instructions/mov.c + src/instructions/movl.c + src/instructions/movb.c + src/instructions/movw.c + src/instructions/shift.c + src/instructions/operations.c + src/instructions/jmp.c + src/syscall/mmu.c + src/instructions/system.c + src/log.c +) +add_executable(nemu ${SRCS}) +include_directories(src) +install(TARGETS nemu DESTINATION bin) +set(CMAKE_BUILD_TYPE Debug) \ No newline at end of file