-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
68 lines (64 loc) · 2.11 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
cmake_minimum_required(VERSION 3.16)
project(compiler)
set(CMAKE_CXX_STANDARD 14)
add_compile_options(-Wall -Wextra -pedantic -Werror -Wfloat-equal)
add_executable(
compiler
src/main.cpp
src/frontend/tokenizer.h
src/frontend/tokenizer.cpp
src/frontend/ast.h
src/frontend/ast.cpp
src/middleend/ast-optimizers.h
src/middleend/ast-optimizers.cpp
src/frontend/recursive_parser.h
src/frontend/recursive_parser.cpp
src/util/SyntaxError.h
src/util/SyntaxError.cpp
src/MappedFile.h
src/MappedFile.cpp
src/backend/codegen.h
src/backend/codegen.cpp
src/backend/SymbolTable.h
src/backend/SymbolTable.cpp
src/stack-machine/src/stack-machine-utils.h
src/stack-machine/src/stack-machine-utils.cpp
src/stack-machine/src/stack-machine.h
src/stack-machine/src/stack-machine.cpp
src/stack-machine/src/arg-parser.h
src/stack-machine/src/arg-parser.cpp
src/util/TokenOrigin.h
src/util/RedefinitionError.h
src/util/RedefinitionError.cpp
src/backend/Label.h
src/backend/Label.cpp
src/util/constants.h
src/util/CoercionError.h
src/util/CoercionError.cpp
src/util/ValueReassignmentError.h
src/util/ValueReassignmentError.cpp)
add_executable(
tests
test/main.cpp
test/testlib.h
test/testlib.cpp
test/frontend/tokenizer_tests.cpp
src/frontend/tokenizer.h
src/frontend/tokenizer.cpp
src/util/SyntaxError.h
src/util/SyntaxError.cpp
src/frontend/ast.h
src/frontend/ast.cpp
src/backend/codegen.h
src/backend/codegen.cpp
src/backend/SymbolTable.h
src/backend/SymbolTable.cpp
src/util/RedefinitionError.h
src/util/RedefinitionError.cpp
src/backend/Label.h
src/backend/Label.cpp
src/util/constants.h
src/util/CoercionError.h
src/util/CoercionError.cpp
src/util/ValueReassignmentError.h
src/util/ValueReassignmentError.cpp)