-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathCMakeLists.txt
84 lines (77 loc) · 1.75 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
cmake_minimum_required(VERSION 3.17)
project(mos6502 C)
find_package(PkgConfig REQUIRED)
set(CURSES_NEED_NCURSES TRUE)
find_package(Curses REQUIRED)
pkg_check_modules(GC REQUIRED IMPORTED_TARGET bdw-gc)
pkg_check_modules(ALG REQUIRED allegro-5)
pkg_check_modules(ALGPRIM REQUIRED allegro_primitives-5)
pkg_check_modules(ALGFONT REQUIRED allegro_font-5)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/instr)
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
add_executable(cpu
main.c
init.c
init.h
pipeline.c
pipeline.h
cpu.c
cpu.h
debug.c
debug.h
instr/adc.c
instr/adc.h
instr/and.c
instr/and.h
instr/asl.c
instr/asl.h
instr/impl.c
instr/impl.h
instr/ora.c
instr/ora.h
instr/rel.c
instr/rel.h
instr/jmp.c
instr/jmp.h
instr/bit.c
instr/bit.h
instr/rol.c
instr/rol.h
instr/eor.c
instr/eor.h
instr/lsr.c
instr/lsr.h
instr/ror.c
instr/ror.h
instr/sta.c
instr/sta.h
instr/sty.c
instr/sty.h
instr/stx.c
instr/stx.h
instr/ldy.c
instr/ldy.h
instr/lda.c
instr/lda.h
instr/ldx.c
instr/ldx.h
instr/cpy.c
instr/cpy.h
instr/cmp.c
instr/cmp.h
instr/dec.c
instr/dec.h
instr/cpx.c
instr/cpx.h
instr/sbc.c
instr/sbc.h
instr/inc.c
instr/inc.h display.c display.h)
target_link_libraries(cpu PUBLIC
${ALG_LIBRARIES}
${ALGPRIM_LIBRARIES}
${ALGFONT_LIBRARIES}
${GC_LIBRARIES}
${CURSES_LIBRARY}
m
)