-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
62 lines (48 loc) · 1.58 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
cmake_minimum_required(VERSION 3.14)
project(MUSGO VERSION 1.0.0 LANGUAGES CXX)
# ---------------------- Include guards --------------------------
# TODO: Check if this is necessary
# ----------------------------------------------------------------
# ----------------------------- Add Musgo Lib ---------------------------
#Compiler
add_library(
Compiler
src/Compiler/Compiler.h
src/Compiler/Compiler.cpp
)
# Analizer
add_library(
Analyzer
src/Analyzer/Analyzer.h
src/Analyzer/Analyzer.cpp
)
#FrontEnd
add_library(
FrontEnd
src/FrontEnd/Lexical/Lexical.cpp
src/FrontEnd/Lexical/Lexical.h
src/FrontEnd/Syntactic/Syntatic.h
src/FrontEnd/Syntactic/Syntatic.cpp
src/FrontEnd/Semantic/Semantic.h
src/FrontEnd/Semantic/Semantic.cpp
src/FrontEnd/Semantic/SymbolTable.cpp
src/FrontEnd/Semantic/SymbolTable.cpp
src/FrontEnd/Types/Production.cpp
src/FrontEnd/Types/Symbol.cpp
src/FrontEnd/Utils/Utils.cpp
src/FrontEnd/Intermediate/AST.h
src/FrontEnd/Intermediate/AST.cpp
)
# -----------------------------------------------------------------------------
# ------------------------------ Build and Include ----------------------------
target_include_directories(Compiler PUBLIC src/Compiler)
target_include_directories(Analyzer PUBLIC src/Analyzer)
target_include_directories(FrontEnd PUBLIC src/FrontEnd)
add_executable(MUSGO src/main.cpp)
target_link_libraries(MUSGO
PRIVATE Compiler
PRIVATE Analyzer
PRIVATE FrontEnd
)
# -----------------------------------------------------------------------------
set_target_properties(MUSGO PROPERTIES CXX_STANDARD 17)