-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
32 lines (31 loc) · 1.06 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
# Build the different semantic analysis passes
add_subdirectory(weeding)
add_subdirectory(symboltable)
add_subdirectory(types)
add_subdirectory(cfa)
# Define a library for all semantic analyses including the underlying passes
add_library(semantic)
target_sources(
semantic PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/SemanticAnalysis.h
${CMAKE_CURRENT_SOURCE_DIR}/SemanticAnalysis.cpp)
target_include_directories(
semantic
PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_CURRENT_SOURCE_DIR}/symboltable
${CMAKE_CURRENT_SOURCE_DIR}/cfa
${CMAKE_CURRENT_SOURCE_DIR}/types
${CMAKE_CURRENT_SOURCE_DIR}/types/concrete
${CMAKE_CURRENT_SOURCE_DIR}/types/constraints
${CMAKE_CURRENT_SOURCE_DIR}/types/solver
${CMAKE_CURRENT_SOURCE_DIR}/weeding
${CMAKE_SOURCE_DIR}/src/frontend/ast
${CMAKE_SOURCE_DIR}/src/frontend/ast/treetypes)
target_link_libraries(
semantic
PRIVATE cfa
ast
weeding
symboltable
types
coverage_config
loguru)