-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
61 lines (55 loc) · 1.51 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
CMAKE_MINIMUM_REQUIRED(VERSION 3.16)
PROJECT("LAMBDA") # Largely Arbitrary Monstrously Bland Acronym
# --- FILES --- #
# Main files
SET(MAIN_FILE
"compile.cpp"
)
# Source files
SET(SOURCE_FILES
"util/util.cpp"
"util/errors.cpp"
"readfile/readfile.cpp"
"scanner/stateGenerator.cpp"
"scanner/scanner.cpp"
"parser/parser.cpp"
"parser/sets/setUtil.cpp"
"parser/sets/first.cpp"
"parser/sets/follow.cpp"
"parser/parser.cpp"
"parser/table.cpp"
"semanticAnalyser/scopes/scope.cpp"
"semanticAnalyser/scopes/scopeManager.cpp"
"semanticAnalyser/scopes/scopeTraverser.cpp"
"semanticAnalyser/semanticErrors.cpp"
"semanticAnalyser/checks.cpp"
"semanticAnalyser/semanticAnalyser.cpp"
"assembler/assembler.cpp"
"generator/assembly.cpp"
"generator/generator.cpp"
"generator/memory.cpp"
"generator/dataValues.cpp"
"simulator/simulator.cpp"
"compile.cpp"
)
# Test files
SET(TEST_FILES
"test_util.cpp"
"test_readfile.cpp"
"test_scanner.cpp"
"test_parser.cpp"
"test_semanticAnalyser.cpp"
"test_grammar.cpp"
"test_assembler.cpp"
"test_integration.cpp"
"util.cpp"
"treesIdentical.cpp"
)
#set(CMAKE_TOOLCHAIN_FILE "~/vcpkg/scripts/buildsystems/vcpkg.cmake")
# Create library
ADD_LIBRARY(LAMBDA_LIBRARY INTERFACE)
TARGET_COMPILE_OPTIONS(LAMBDA_LIBRARY INTERFACE -O0 -g --coverage) # -fstandalone-debug
TARGET_LINK_LIBRARIES(LAMBDA_LIBRARY INTERFACE --coverage)
# Subdirectories
#ADD_SUBDIRECTORY(src)
ADD_SUBDIRECTORY(tests)