-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
137 lines (132 loc) · 4.19 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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
cmake_minimum_required(VERSION 3.9)
project(clyra C)
set(CMAKE_C_STANDARD 99)
set(CMAKE_BUILD_TYPE Debug)
set(RUNTIME_OUTPUT_DIRECTORY build)
include_directories(src)
include_directories(test)
add_executable(
clyra
src/common/enums.h
src/common/depth_map.c
src/common/depth_map.h
src/common/hashmap.c
src/common/hashmap.h
src/common/list.c
src/common/list.h
src/common/maps.h
src/common/stack.c
src/common/stack.h
src/common/strings.c
src/common/strings.h
src/debugging/mem_checks.h
src/debugging/printing_visitor.c
src/debugging/printing_visitor.h
src/debugging/to_json_visitor.c
src/debugging/to_json_visitor.h
src/lexer/lexer.c
src/lexer/lexer.h
src/parser/ast.h
src/parser/ast.c
src/parser/parser.c
src/parser/parser.h
src/parser/parser_error.c
src/parser/parser_error.h
src/main.c
src/typechecker/typechecker.c
src/typechecker/typechecker.h
src/typechecker/typedefs.h
src/typechecker/typedefs.c
src/typechecker/types.c
src/typechecker/types.h
)
enable_testing()
add_executable(
clyra_tests
src/common/enums.h
src/common/depth_map.c
src/common/depth_map.h
src/common/hashmap.c
src/common/hashmap.h
src/common/list.c
src/common/list.h
src/common/maps.h
src/common/stack.c
src/common/stack.h
src/common/strings.c
src/common/strings.h
src/lexer/lexer.c
src/lexer/lexer.h
src/parser/ast.h
src/parser/ast.c
src/parser/parser.c
src/parser/parser.h
src/parser/parser_error.c
src/parser/parser_error.h
src/typechecker/typechecker.c
src/typechecker/typechecker.h
src/typechecker/typedefs.h
src/typechecker/typedefs.c
src/typechecker/types.c
src/typechecker/types.h
test/common/list_test.c
test/common/list_test.h
test/lexer/lexer_test.c
test/lexer/lexer_test.h
test/parser/ast_test.c
test/parser/ast_test.h
test/parser/array_tests.c
test/parser/array_tests.h
test/parser/block_tests.c
test/parser/block_tests.h
test/parser/func_decl_tests.c
test/parser/func_decl_tests.h
test/parser/ifelse_tests.c
test/parser/ifelse_tests.h
test/parser/invocation_tests.c
test/parser/invocation_tests.h
test/parser/parser_test.c
test/parser/parser_test.h
test/parser/type_decl_tests.c
test/parser/type_decl_tests.h
test/parser/literal_tests.c
test/parser/literal_tests.h
test/parser/object_tests.c
test/parser/object_tests.h
test/parser/unary_binary_tests.c
test/parser/unary_binary_tests.h
test/parser/val_decl_tests.c
test/parser/val_decl_tests.h
test/typechecker/array_tests.c
test/typechecker/array_tests.h
test/typechecker/binary_tests.c
test/typechecker/binary_tests.h
test/typechecker/block_tests.c
test/typechecker/block_tests.h
test/typechecker/funcdecl_tests.c
test/typechecker/funcdecl_tests.h
test/typechecker/ifelse_tests.c
test/typechecker/ifelse_tests.h
test/typechecker/invocation_tests.c
test/typechecker/invocation_tests.h
test/typechecker/literal_tests.c
test/typechecker/literal_tests.h
test/typechecker/objectliteral_tests.c
test/typechecker/objectliteral_tests.h
test/typechecker/typechecker_tests.c
test/typechecker/typechecker_tests.h
test/typechecker/typedecl_tests.c
test/typechecker/typedecl_tests.h
test/typechecker/unary_tests.c
test/typechecker/unary_tests.h
test/typechecker/valdecl_tests.c
test/typechecker/valdecl_tests.h
test/typechecker/typechecker_test_utils.h
test/typechecker/types_tests.c
test/typechecker/types_tests.h
test/main.c
test/test.h
test/test_utils.c
test/test_utils.h
)
add_test(clyra_tests clyra_tests)