-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCMakeLists.txt
94 lines (89 loc) · 3.21 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
85
86
87
88
89
90
91
92
93
94
cmake_minimum_required(VERSION 3.29)
project(city)
set(CMAKE_CXX_STANDARD 23)
include(FetchContent)
FetchContent_Declare(
googletest
GIT_REPOSITORY https://github.com/google/googletest.git
GIT_TAG main
)
FetchContent_MakeAvailable(googletest)
add_library(city
src/Assembly.cpp
src/Assembly.h
src/ByteBuffer.h
src/container/Container.cpp
src/container/Container.h
src/JIT.cpp
src/JIT.h
src/Object.cpp
src/Object.h
src/Symbol.cpp
src/Symbol.h
src/backend/Backend.cpp
src/backend/Backend.h
src/backend/IRTranslator.h
src/backend/NativeInstruction.cpp
src/backend/NativeInstruction.h
src/backend/aarch64/AArch64.cpp
src/backend/aarch64/AArch64.h
src/backend/aarch64/instruction/AArch64Instruction.cpp
src/backend/aarch64/instruction/AArch64Instruction.h
src/backend/amd64/Amd64.cpp
src/backend/amd64/Amd64.h
src/backend/amd64/container/Amd64ModRM.h
src/backend/amd64/Amd64Module.cpp
src/backend/amd64/Amd64Module.h
src/backend/amd64/container/Amd64Register.cpp
src/backend/amd64/container/Amd64Register.h
src/backend/amd64/Amd64Translator.cpp
src/backend/amd64/Amd64Translator.h
src/backend/amd64/instruction/Amd64Instruction.cpp
src/backend/amd64/instruction/Amd64Instruction.h
src/backend/amd64/instruction/control/Amd64Ret.h
src/backend/amd64/instruction/memory/Amd64Mov.h
src/backend/amd64/instruction/memory/Amd64Pop.h
src/backend/amd64/instruction/memory/Amd64Push.h
src/ir/IRBuilder.cpp
src/ir/IRBuilder.h
src/ir/IRFunction.cpp
src/ir/IRFunction.h
src/ir/IRModule.cpp
src/ir/IRModule.h
src/ir/block/IRBlock.cpp
src/ir/block/IRBlock.h
src/ir/instruction/IRInstruction.cpp
src/ir/instruction/IRInstruction.h
src/ir/instruction/InstructionFunctor.h
src/ir/instruction/arithmetic/AddInst.cpp
src/ir/instruction/arithmetic/AddInst.h
src/ir/instruction/control/RetInst.cpp
src/ir/instruction/control/RetInst.h
src/runtime/MacOS.cpp
src/runtime/MacOS.h
src/runtime/NativeMemoryHandle.cpp
src/runtime/NativeMemoryHandle.h
src/runtime/Runtime.h
src/runtime/Windows.cpp
src/runtime/Windows.h
src/type/Type.cpp
src/type/Type.h
src/Value.cpp
src/Value.h
src/ir/instruction/IRBinaryInstruction.cpp
src/ir/instruction/IRBinaryInstruction.h
src/backend/amd64/instruction/arithmetic/Amd64Add.h
src/container/ConstantDataContainer.cpp
src/container/ConstantDataContainer.h
src/backend/amd64/container/Amd64RegisterLoader.h
src/backend/amd64/container/Amd64RegisterLoader.cpp
src/ir/instruction/arithmetic/SubInst.cpp
src/ir/instruction/arithmetic/SubInst.h
src/backend/amd64/instruction/arithmetic/Amd64Sub.h
)
target_include_directories(city PUBLIC src)
add_executable(city-test
test/module.test.cpp
test/amd64.test.cpp
)
target_link_libraries(city-test PRIVATE city GTest::gtest_main)