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