build par cmake
This commit is contained in:
parent
518e93522e
commit
6055a42c67
|
@ -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)
|
Loading…
Reference in New Issue