-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
110 lines (96 loc) Β· 1.8 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
cmake_minimum_required(VERSION 3.18)
project(taurine)
include(cmake/shortcuts.cmake)
enable_testing()
define_library(
NAME vec
SOURCES
vec/src/vec.h
MAP_HEADERS_TO_ROOT_DIR
)
define_library(
NAME tau
SOURCES
tau/src/tau.h
tau/src/misc.h
tau/src/types.h
tau/src/compilers.h
MAP_HEADERS_TO_ROOT_DIR
)
define_library_tests(
NAME vec_with_linear_growth_tests
SOURCE vec/tests/tests.c
DEPENDENCIES
vec
tau
)
define_library_tests(
NAME vec_with_logarithmic_growth_tests
SOURCE vec/tests/tests.c
DEPENDENCIES
vec
tau
)
target_compile_definitions(vec_with_linear_growth_tests PRIVATE VEC_LINEAR_GROWTH)
target_compile_definitions(vec_with_logarithmic_growth_tests PRIVATE VEC_LOGARITHMIC_GROWTH)
define_library(
NAME argparse
SOURCES
argparse/src/argparse.c
argparse/src/argparse.h
MAP_HEADERS_TO_ROOT_DIR
)
define_library(
NAME apple_map
SOURCES
apple_map/src/apple_map.c
apple_map/src/apple_map.h
MAP_HEADERS_TO_ROOT_DIR
)
define_library_tests(
NAME apple_map_tests
SOURCE apple_map/tests/tests.c
DEPENDENCIES
apple_map
)
define_library(
NAME arty
SOURCES
arty/src/utf8.c
arty/src/utf8.h
arty/src/unicode.c
arty/src/unicode.h
MAP_HEADERS_TO_ROOT_DIR
)
define_library_tests(
NAME arty_tests
SOURCE arty/tests/tests.c
DEPENDENCIES
arty
)
define_library(
NAME lunarity
SOURCES
lunarity/src/token.h
lunarity/src/token.c
lunarity/src/lexer.h
lunarity/src/lexer.c
lunarity/src/location.h
lunarity/src/location.c
DEPENDENCIES
arty
MAP_HEADERS_TO_ROOT_DIR
)
define_library_tests(
NAME lunarity_lexer_tests
SOURCE lunarity/tests/lexer_tests.c
DEPENDENCIES
lunarity
)
define_cli_exec(
NAME lunarity
SOURCE lunarity/src/cli.c
DEPENDENCIES
lunarity
argparse
)