22 lines
495 B
CMake
22 lines
495 B
CMake
|
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)
|